ZenphotoCMS Forum
undefined constants in setup - 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: undefined constants in setup (/thread-3102.html)



undefined constants in setup - george2 - 2008-06-16

just about to install a new install from svn, and see these notices:

Notice: Use of undefined constant WEBPATH - assumed 'WEBPATH' in
zp-core\functions-i18n.php on line 168

Notice: Use of undefined constant WEBPATH - assumed 'WEBPATH' in zp-core\functions-i18n.php on line 169

and then after pressing 'go':

About to create tables...

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in zp-core\functions.php on line 2052
Done with table create!




undefined constants in setup - acrylian - 2008-06-16

I don't see any of those errors with my freshly upldated svn install. The only thing I see when browsing the gallery is:
PHP Notice: Use of undefined constant OFFSET_PATH - assumed 'OFFSET_PATH' in /Applications/MAMP/htdocs/zenphoto-svn/zp-core/functions.php on line 31

Re: array_key_exists: http://www.zenphoto.org/support/topic.php?id=3239#post-19437




undefined constants in setup - george2 - 2008-06-16

change your error reporting to:

error_reporting = E_ALL & ~E_NOTICE

in php.ini




undefined constants in setup - acrylian - 2008-06-16

It was set to error_reporting = E_ALL

I still don't see what you see.




undefined constants in setup - george2 - 2008-06-16

damn you then! i'm not crazy! maybe because you use an inferior mac? :p




undefined constants in setup - acrylian - 2008-06-16

Don't get personal...:-)




undefined constants in setup - sbillard - 2008-06-17

george2:

How about you update ALL the files from the build. You are missing an updated index.php from the root.