Announcement

  •  » Extensions
  •  » I can not use Ploader online mode.

#1 2009-10-24 17:35:43

quaking
Member
1970-01-01
9

I can not use Ploader online mode.

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

 

#2 2009-10-24 20:57:31

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: I can not use Ploader online mode.

On you PC, could you test with php 5.2.0 for example?

(if wampserver it is very simple to do)
Thanks for feedback.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2009-10-24 21:00:02

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: I can not use Ploader online mode.

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.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#4 2009-10-25 02:56:24

quaking
Member
1970-01-01
9

Re: I can not use Ploader online mode.

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

 

#5 2009-10-26 01:59:52

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: I can not use Ploader online mode.

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

 

#6 2009-12-05 00:26:37

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: I can not use Ploader online mode.

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

 
  •  » Extensions
  •  » I can not use Ploader online mode.

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact