![]() |
|
Notice: Undefined variable: fullimage image.php - 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: Notice: Undefined variable: fullimage image.php (/thread-11750.html) |
Notice: Undefined variable: fullimage image.php - LondonLight.org - 2014-04-15 Hey! I'm using 1.4.6-BETA [4196c58634]. I made my own theme, and I followed your theming tutorial which links to: https://github.com/zenphoto/DevTools/blob/master/demo_plugin-and-theme/demo_theme-basic-files/image.php This page has the following line to display the image: `<a href="<?php echo html_encode($fullimage);?>"` (...) When I paste that into my image.php, I get the following error instead of the actual link: > Notice: Zenphoto processed a 404 error on /zp/Macro/ > Notice: Undefined variable: fullimage in /var/www/localhost/htdocs/zp/themes/gold/image.php on line 58 > . See the debug log for details. in /var/www/localhost/htdocs/zp/zp-core/functions.php on line 1929 > Zenphoto Error: the requested object was not found. > Album: Macro/Notice Undefined variable fullimage in /var/www/localhost/htdocs/zp/themes/gold/image.php on line 58 Now if I add "$fullimage = getFullImageURL();" before that, it works fine, however your theming tutorial does not mention this, which is why I'm writing here. If this is an omission in the latest code, then please treat this as a bug report, otherwise please explain what I failed to include in my php :] Here is the full code of my image.php: http://bpaste.net/show/8EZu2cUlRk1h54wsyPpL/ Kind regards Notice: Undefined variable: fullimage image.php - acrylian - 2014-04-15 Of course a variable needs to have assigned a value in PHP to be valid and existing. This is clearly a typo in the demo file. It should be actually: `<a href="<?php echo html_encode(getFullImageURL());?>` Update: It has been corrected now. Notice: Undefined variable: fullimage image.php - LondonLight.org - 2014-04-15 Glad to be of service :] |