OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



After install I got PHP Catchable fatal error

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
Developer Resources:

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome.

After install I got PHP Catchable fatal error

Postby the_eye » Tue Aug 03, 2010 3:45 pm

After install I try to view local the harvester and I got a white page. (http://192.168.2.3/harvest/index.php/login)
Apache logs some warning and a fatal error (last line)

Code: Select all
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/lib/adodb/adodb.inc.php on line 896
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/lib/adodb/adodb.inc.php on line 1922
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/lib/adodb/adodb.inc.php on line 1994
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/CacheManager.inc.php on line 27
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/CacheManager.inc.php on line 41
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/CacheManager.inc.php on line 60
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/CacheManager.inc.php on line 72
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 55
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/site/SiteSettingsDAO.inc.php on line 201
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 01:38:56 2010] [error] [client 192.168.2.3] PHP Catchable fatal error:  Object of class generic_cache_miss could not be converted to string in /var/www/harvest/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 136


I use :
Code: Select all
Database Version:       5.1.41-3ubuntu12.6 (MySql)
PHP Version:    5.3.2-1ubuntu4.2
Web Server:    Apache/2.2.14 (Ubuntu)

Register Globals Emulation:    OFF    
Register Globals:    OFF    
Magic Quotes:    OFF    
Safe Mode:    OFF    
File Uploads:    ON    
Session auto start:    OFF    
Session save path:    /var/lib/php5
Short Open Tags:    ON    
Output Buffering:    OFF    
Open basedir:    none
Display Errors:    OFF
XML enabled:    Yes
Zlib enabled:    Yes
Disabled Functions:    none


Thanks in advance
the_eye
 
Posts: 4
Joined: Tue Aug 03, 2010 3:37 pm

Re: After install I got PHP Catchable fatal error

Postby asmecher » Tue Aug 03, 2010 4:19 pm

Hi the_eye,

Make sure your cache/ directory and all of its subdirectories and their contents are writable by the web server user (typically "www-data" or "apache", depending on your setup). If that doesn't correct the problem, turn on the show_stacktrace option in config.inc.php; this should give you more information in the log or on the screen.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7745
Joined: Wed Aug 10, 2005 12:56 pm

Re: After install I got PHP Catchable fatal error

Postby the_eye » Wed Aug 04, 2010 8:52 am

Thanks for your reply.
Unfortunately nothing happens.
It did a
chmod -R 777 cache
chown -R www-data:www-data cache

and I change show_stacktrace to on
Nothing in browser.
In logs I got
Code: Select all
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/lib/adodb/adodb.inc.php on line 896
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/lib/adodb/adodb.inc.php on line 1922
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/lib/adodb/adodb.inc.php on line 1994
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/CacheManager.inc.php on line 27
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/CacheManager.inc.php on line 41
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/CacheManager.inc.php on line 60
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/CacheManager.inc.php on line 72
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 55
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/harvest/lib/pkp/classes/site/SiteSettingsDAO.inc.php on line 201
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Warning:  get_class() expects parameter 1 to be object, string given in /var/www/harvest/lib/pkp/classes/cache/GenericCache.inc.php on line 63
[Wed Aug 04 18:46:35 2010] [error] [client 192.168.2.3] PHP Catchable fatal error:  Object of class generic_cache_miss could not be converted to string in /var/www/harvest/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 136
the_eye
 
Posts: 4
Joined: Tue Aug 03, 2010 3:37 pm

Re: After install I got PHP Catchable fatal error

Postby asmecher » Wed Aug 04, 2010 9:11 am

Hi the_eye,

What version of the harvester are you using?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7745
Joined: Wed Aug 10, 2005 12:56 pm

Re: After install I got PHP Catchable fatal error

Postby the_eye » Wed Aug 04, 2010 9:32 am

My mistake I forgot to mention it.
Version 2.3.0 downloaded from here http://pkp.sfu.ca/harvester_download
the_eye
 
Posts: 4
Joined: Tue Aug 03, 2010 3:37 pm

Re: After install I got PHP Catchable fatal error

Postby asmecher » Thu Aug 05, 2010 10:03 am

Hi the_eye,

I suspect this is due to changes in PHP since that version of the Harvester was released. If you're handy with git, I'd suggest checking out a copy of the newest code from there; we'll be putting together a release fairly soon (i.e. within the next week or two). Barring those options, the best thing to do might be to downgrade your PHP install to something 5.1 or 5.2ish. (Our git repository is http://www.github.com/pkp.)

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7745
Joined: Wed Aug 10, 2005 12:56 pm

Re: After install I got PHP Catchable fatal error

Postby the_eye » Thu Aug 05, 2010 12:22 pm

I did a little debug myself.
I insert a
Code: Select all
echo $category, $pathName;

in PluginRegistry.inc.php before line 136 and I get in browser
Code: Select all
themes

that seams that problem has to do with $pathName

I hope I am helping.
the_eye
 
Posts: 4
Joined: Tue Aug 03, 2010 3:37 pm


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 1 guest