![]() |
|
Use of undefined constant silent in heading.php after 1.2.5 upgrade - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Use of undefined constant silent in heading.php after 1.2.5 upgrade (/thread-5331.html) |
Use of undefined constant silent in heading.php after 1.2.5 upgrade - pled - 2009-06-13 Hello, I have upgraded my local zenphoto album from 1.2.3 to 1.2.5. After upgrade, I get the following message (note the random image is displayed) : Notice: Use of undefined constant silent - assumed 'silent' in /var/www/wordpress/zenphoto/themes/testing-dev/heading.php on line 4 The line 4 and next are like below : ` if (is_null($randomImage) || checkforPassword(silent)) { $randomImage= new Image(new Album(new Gallery(), ''), 'zen-logo.jpg' ); } ` Should I change something in the heading.php because of version 1.2.5 ? I would like to fix this before upgrading the on-line album. Thanks and regards, Use of undefined constant silent in heading.php after 1.2.5 upgrade - acrylian - 2009-06-13 Try Use of undefined constant silent in heading.php after 1.2.5 upgrade - pled - 2009-06-13 acrylian, Tried, but same message. Tried with Effervescence theme, and I still get the same. Seems more related to usage of checkforPassword(silent), isn't it ? Use of undefined constant silent in heading.php after 1.2.5 upgrade - sbillard - 2009-06-13 The error is in the lines you quote above. Use of undefined constant silent in heading.php after 1.2.5 upgrade - acrylian - 2009-06-13 Probably a typo as Use of undefined constant silent in heading.php after 1.2.5 upgrade - pled - 2009-06-14 perfect : using 'true' as the parameter solves the problem. Lines are now : ` if (is_null($randomImage) || checkforPassword(true)) { $randomImage= newImage(new Album(new Gallery(), ''), 'zen-logo.jpg' ); } ` Thank you for your great support. |