Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Undefined variable: mod_zentools2

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello

I installed "Medica" Joomla template to my test environment.
I'v got an error in frontpage "Undefined variable: new in /var/www/htdocs/medica/modules/mod_zentools2/includes/images.php on line 184".
Seems like zentools2 slideshow have some problems or.... Others pages working without problem and I see doctors picture on header.
What is wrong?

Thank You

Here is my Apache2 error.log:

[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP Notice: Undefined variable: new in /var/www/htdocs/medica/modules/mod_zentools2/includes/images.php on line 184
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP Stack trace:
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 1. {main}() /var/www/htdocs/medica/index.php:0
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 2. JApplicationCms->execute() /var/www/htdocs/medica/index.php:45
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 3. JApplicationSite->render() /var/www/htdocs/medica/libraries/cms/application/cms.php:258
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 4. JApplicationCms->render() /var/www/htdocs/medica/libraries/cms/application/site.php:745
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 5. JDocumentHTML->render() /var/www/htdocs/medica/libraries/cms/application/cms.php:1059
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 6. JDocumentHTML->_renderTemplate() /var/www/htdocs/medica/libraries/joomla/document/html/html.php:477
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 7. JDocumentHTML->getBuffer() /var/www/htdocs/medica/libraries/joomla/document/html/html.php:697
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 8. JDocumentRendererModules->render() /var/www/htdocs/medica/libraries/joomla/document/html/html.php:411
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 9. JDocumentRendererModule->render() /var/www/htdocs/medica/libraries/joomla/document/html/renderer/modules.php:43
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 10. JModuleHelper::renderModule() /var/www/htdocs/medica/libraries/joomla/document/html/renderer/module.php:103
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 11. include() /var/www/htdocs/medica/libraries/cms/module/helper.php:190
[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP 12. images::getList() /var/www/htdocs/medica/modules/mod_zentools2/mod_zentools2.php:52
  • Kristjan's Avatar
  • Kristjan
  • 3 Month Basic
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
Hi

What local host are you using?

Is the localhost a recent install?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yes. It's local host. Turnkey LAMP on VMWare.
  • Kristjan's Avatar
  • Kristjan
  • 3 Month Basic
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
#lsb_release -a
Distributor ID: Debian
Description: Debian GNU/Linux 7.9 (wheezy)
Release: 7.9
Codename: wheezy
  • Kristjan's Avatar
  • Kristjan
  • 3 Month Basic
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
Does a standard joomla installer run correctly?

If you reduce the error reporting level does that work?

[Wed Jan 13 13:33:07 2016] [error] [client 192.168.1.60] PHP Notice: Undefined variable: new in /var/www/htdocs/medica/modules/mod_zentools2/includes/images.php on line 184

a notice doesn't always mean an error and with a localhost can mean the error reporting level is too high
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yes, you where right. I changed in php.ini error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT, Joomla error reporting to system default and this notice went away.
I was entirely in wrong tracks. I had problems instead with image folder :)

Thank You
  • Kristjan's Avatar
  • Kristjan
  • 3 Month Basic
  • 14 posts
  • Karma: 0
The administrator has disabled public write access.
No problem

Glad we got there

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
and welcome on board to Joomla Bamboo :)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi there,
Just to let you know I fixed the zentools2 error listed above and will include in the next update.
Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers