Thunderbird Extensions
Apple - mac
Web iPhoto Access
Donation
Make a donation to help WiPhA development

Search




Preferences

 Count of members 29 members


Users online

( nobody )
Visits

 147705 visitors

 8 visitors online

Private
forum.gifForum - Web iPhoto Access - Topic #45


Topic #45 Error with permissions or PHP 5 or...?
    by Nick - visitor
28/01/2006 @ 08:01
Anonymous
After installation and turning on the web server, I attempted to access .../wipha I got the following series of error messages. Perhaps this is due to having installed PHP 5 earlier? I don't know, I'm obviously no expert.


Notice: Use of undefined constant app - assumed 'app' in /Users/nick/Sites/wipha/libs/utils.php on line 58

Notice: Use of undefined constant app - assumed 'app' in /Users/nick/Sites/wipha/libs/utils.php on line 66

Notice: Use of undefined constant version - assumed 'version' in /Users/nick/Sites/wipha/libs/utils.php on line 67

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/nick/Sites/wipha/libs/users.php on line 159

Notice: Use of undefined constant USERS_FILE - assumed 'USERS_FILE' in /Users/nick/Sites/wipha/libs/users.php on line 39

Notice: Use of undefined constant USERS_VERSION - assumed 'USERS_VERSION' in /Users/nick/Sites/wipha/libs/users.php on line 40

Notice: Use of undefined constant NO_SUCH_USER - assumed 'NO_SUCH_USER' in /Users/nick/Sites/wipha/libs/users.php on line 42

Notice: Use of undefined constant USER_EXISTS - assumed 'USER_EXISTS' in /Users/nick/Sites/wipha/libs/users.php on line 43

Notice: Use of undefined constant BAD_USER_NAME - assumed 'BAD_USER_NAME' in /Users/nick/Sites/wipha/libs/users.php on line 44

Notice: Use of undefined constant LOGIN_PASSWD_REQ - assumed 'LOGIN_PASSWD_REQ' in /Users/nick/Sites/wipha/libs/users.php on line 45

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/nick/Sites/wipha/libs/wipha.php on line 367

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/nick/Sites/wipha/libs/wipha.php on line 384

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/nick/Sites/wipha/libs/wipha.php on line 423

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/nick/Sites/wipha/libs/wipha.php on line 469

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/nick/Sites/wipha/libs/wipha.php on line 469

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/nick/Sites/wipha/libs/wipha.php on line 673

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Users/nick/Sites/wipha/libs/wipha.php on line 673

Notice: Use of undefined constant BASE_DIR - assumed 'BASE_DIR' in /Users/nick/Sites/wipha/libs/smarty.php on line 39

Notice: Use of undefined constant APP_NAME - assumed 'APP_NAME' in /Users/nick/Sites/wipha/libs/smarty.php on line 40

Notice: Use of undefined constant PARSER_NOWHERE - assumed 'PARSER_NOWHERE' in /Users/nick/Sites/wipha/libs/iphotoparser.php on line 92

Notice: Use of undefined constant PARSER_IN_ALBUM_LIST - assumed 'PARSER_IN_ALBUM_LIST' in /Users/nick/Sites/wipha/libs/iphotoparser.php on line 93

Notice: Use of undefined constant PARSER_IN_ALBUM - assumed 'PARSER_IN_ALBUM' in /Users/nick/Sites/wipha/libs/iphotoparser.php on line 94

Notice: Use of undefined constant PARSER_IN_ALBUM_CONTENT - assumed 'PARSER_IN_ALBUM_CONTENT' in /Users/nick/Sites/wipha/libs/iphotoparser.php on line 95

Notice: Use of undefined constant PARSER_IN_KEYWORD_LIST - assumed 'PARSER_IN_KEYWORD_LIST' in /Users/nick/Sites/wipha/libs/iphotoparser.php on line 96

Notice: Use of undefined constant PARSER_IN_PHOTO_LIST - assumed 'PARSER_IN_PHOTO_LIST' in /Users/nick/Sites/wipha/libs/iphotoparser.php on line 97

Notice: Use of undefined constant PARSER_IN_PHOTO - assumed 'PARSER_IN_PHOTO' in /Users/nick/Sites/wipha/libs/iphotoparser.php on line 98

Notice: Use of undefined constant PARSER_IN_PHOTO_KEYWORDS - assumed 'PARSER_IN_PHOTO_KEYWORDS' in /Users/nick/Sites/wipha/libs/iphotoparser.php on line 99

Fatal error: Cannot redeclare zipper::$name in /Users/nick/Sites/wipha/libs/zipper.php on line 58
Post an answer




Answer #1 by Globs - rank ( 79 messages )
28/01/2006 @ 15:41
Globs
Hi,
yes, it's because of PHP5.
I developped WiPhA on PHP4, as it's the version included on OSX by default.
I'll have to mention that in the doc.
Site web Globs Write to Globs Post an answer

Top

Answer #2 by Sweetsounds - visitor
28/01/2006 @ 18:01
Anonymous
I might have updated to php 5, but I can't remember. How can I find out which version of php I have installed ?
Post an answer

Top

Answer #3 by Globs - rank ( 84 messages )
28/01/2006 @ 18:07
Globs
create a file test.php in your site folder, containing

<?php
    phpinfo();
?>



and display it with your browser.
Site web Globs Write to Globs Post an answer

Top

Answer #4 by Nick - visitor
29/01/2006 @ 07:07
Anonymous
Probably getting too me-specific here, but is there an easy way to revert to PHP 4.x?
Post an answer

Top

Answer #5 by Globs - rank ( 92 messages )
29/01/2006 @ 14:42
Globs
Not sure about this, since I never installed php myself; I just used the default OSX install.
You probably have to change the  modules lines relative to php in /etc/httpd/httpd.conf . Have a search on all 'php' or 'php4' patterns in the file. Here are the default module rules:


LoadModule php4_module        libexec/httpd/libphp4.so
AddModule mod_php4.c



Site web Globs Write to Globs Post an answer

Top

Answer #6 by Globs - rank ( 137 messages )
22/02/2006 @ 20:00
Globs
Version 2.0 supports PHP5 (Entropy package) cool
Site web Globs Write to Globs Post an answer

Top

^ Top ^

GuppY - http://www.freeguppy.org/    Site powered by GuppY v4.5.14 © 2004-2005 - CeCILL Free License   GuppY - http://www.freeguppy.org/

Document generated in 0.14 second