Welcome, Guest
Username: Password: Remember me

TOPIC: An error noticed in module

An error noticed in module 4 years 7 months ago #701

  • katya
  • katya's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 8
  • Karma: 0
Please look at notice in module:
---
Notice: Undefined variable: count in <cutted>/modules/mod_otmininews/tmpl/default.php on line 21
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: An error noticed in module 4 years 3 weeks ago #2222

  • girdy
  • girdy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Sorry how do we resolve this issue please?
The administrator has disabled public write access.

Re: An error noticed in module 4 years 3 weeks ago #2228

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
Hi,
It just the notice when you have no articles (in selected category).

If you want not show the notice, you can edit the file and put a condition check in /modules/mod_otmininews/tmpl/default.php line 21.

eg:
if ($count > 0){
// do foreach or something
}

Or if that var is not need, just remove it.

Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
Last Edit: 4 years 3 weeks ago by linh_omg.
The administrator has disabled public write access.
Time to create page: 0.157 seconds