Hi
I am running the Piwigo on one of my PC, which running Windows XP+Apache 2.2.14+php5.3.0+mysql 5.1.40.
after I finished setup the Piwigo, I want to use Ploader to upload the pictures, but after I type the address,username and password try to connect, it failed. I have shut down all the firewall and try to use the ploader on the pc which running the Pigiwo, so I think this is not network connectiong problem.
But I found I can run the Ploader in the offline mode, when I upload some pictures in the ploader, the website will sync with the ploader. but it can not get the website old pic info due to offline mode.
When I use the Ploader to login, I get some error messages from the Apache log:
[Sat Oct 24 21:42:50 2009] [error] [client 192.168.1.1] PHP Warning: get_class() expects parameter 1 to be object, boolean given in D:\\Web\\include\\ws_core.inc.php on line 527
[Sat Oct 24 21:42:50 2009] [error] [client 192.168.1.1] PHP Warning: get_class() expects parameter 1 to be object, boolean given in D:\\Web\\include\\ws_protocols\\json_encoder.php on line 61
[Sat Oct 24 21:42:50 2009] [error] [client 192.168.1.1] PHP Warning: get_class() expects parameter 1 to be object, boolean given in D:\\Web\\include\\ws_core.inc.php on line 272
[Sat Oct 24 21:42:50 2009] [error] [client 192.168.1.1] PHP Warning: get_class() expects parameter 1 to be object, boolean given in D:\\Web\\include\\ws_core.inc.php on line 282
[Sat Oct 24 21:42:50 2009] [error] [client 192.168.1.1] PHP Warning: get_class() expects parameter 1 to be object, boolean given in D:\\Web\\include\\ws_core.inc.php on line 527
[Sat Oct 24 21:42:50 2009] [error] [client 192.168.1.1] PHP Warning: get_class() expects parameter 1 to be object, array given in D:\\Web\\include\\ws_protocols\\json_encoder.php on line 61
[Sat Oct 24 21:42:50 2009] [error] [client 192.168.1.1] PHP Warning: get_class() expects parameter 1 to be object, array given in D:\\Web\\include\\ws_core.inc.php on line 272
[Sat Oct 24 21:42:50 2009] [error] [client 192.168.1.1] PHP Warning: get_class() expects parameter 1 to be object, array given in D:\\Web\\include\\ws_core.inc.php on line 282
in addation, when I want to vote for one pic, after I click the star, the error message will see:
warning: get_class() expects parameter 1 to be object, boolean given in d:\web\include\ws_core.inc.php on line 527
Does anybody have any idea to fix the problem? Thanks a lot~
Offline
On you PC, could you test with php 5.2.0 for example?
(if wampserver it is very simple to do)
Thanks for feedback.
Offline
PHP is saying
As of 5.3.0 this function seems to have started throwing an E_WARNING error if you pass it a non-object. Suppress that with "@" if you are actually checking and handling the false return code.
Offline
Great! after I changed the PHP to 5.2.0, the Ploader works!
Thanks you very much~
Last edited by quaking (2009-10-25 03:30:40)
Offline
Thanks for this feedback quaking. I have to test pLoader with PHP 5.3.0 on server side with a high priority.
[Bugtracker] ticket 1211
Offline
I've installed PHP 5.3.1 and reproduced the problem.
I've fixed the issue the way VDigital suggests, by replacing get_class by @get_class, see [Subversion] r4426
As rvelices has coded the "ws" (webservice = web API) core and that he also wrote @get_class in plugins/event_tracer/main.inc.php for function on_page_tail (see [Subversion] r2771), I guess it's OK.
I notify rvelices, nicolas and Eric on this subject! (strongly related to [Forum, topic 15303] Compatibility PHP 5.3 (pre-6.0)?)
Offline