Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
globetrotter
Imagevue Expert
Topic Author
Posts: 844
Joined: 18 Oct 2006, 13:16

Error messages

17 Feb 2016, 14:08

I thought it was a good idea to make a subfolder with Imagevue X2 in it.

But I get a error message:
Code
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON has a deprecated constructor in /customers/1/f/c/globetrotternet.nl/httpd.www/x2/iv-includes/include/JSON.php on line 115 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in /customers/1/f/c/globetrotternet.nl/httpd.www/x2/iv-includes/include/JSON.php on line 781 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in /customers/1/f/c/globetrotternet.nl/httpd.www/x2/iv-includes/include/JSON.php on line 795 
Maybe this is because I upgraded to PHP 7.0.2?
Or maybe my backup is a little bit corrupt?

I tried tot replace iv-includes/include/JSON.php, but that didn't help.

Edit: found this link: http://php.net/manual/en/migration70.deprecated.php
Rene
http://www.globetrotternet.nl/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Error messages

17 Feb 2016, 23:01

It's not an error, but a warning. This warning is harmless, and is only displaying because you have them set to display PHP. But yes it's PHP 7 related ... Ultimately, you shouldn't be upgrading to latest "edge" version of PHP for an old Imagevue X2, but I understand you did it because you are upgrading to X3?
 
User avatar
globetrotter
Imagevue Expert
Topic Author
Posts: 844
Joined: 18 Oct 2006, 13:16

Re: Error messages

19 Feb 2016, 16:33

I have disabled the display of php messages.
In php 7.0.2 I still see the messages in the top of the flash site. In the html it is only visible for a split second.

After downgrading to php 5.6.16, I don't see the messages anymore in html. Didn't check the flash version yet.
Rene
http://www.globetrotternet.nl/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Error messages

19 Feb 2016, 22:29

globetrotter wrote:I have disabled the display of php messages.
In php 7.0.2 I still see the messages in the top of the flash site.
X2 Flash site from 2009 is not made to be compatible with PHP7.0, so there may be errors.
globetrotter wrote: In the html it is only visible for a split second.
I would like to see this. If PHP displays anything with "warning" or "notice", it means PHP error reporting would be on somehow ....

We do need to improve a few things for PHP 7 though ...
 
User avatar
globetrotter
Imagevue Expert
Topic Author
Posts: 844
Joined: 18 Oct 2006, 13:16

Re: Error messages

20 Feb 2016, 15:55

I did upgrade to php 7.0.2 again.

Imagevue X3 is working fine as far I can see: http://www.globetrotternet.nl/
But in Imagevue X2 the messages are back (ofcourse): http://www.globetrotternet.nl/x2/

In the html version you see messages in a split second. Also in the admin I get warnings and sometimes requested pages don't show correctly. After a refresh it is sometimes OK for a while.

The flash version is not really working well. Sometimes it is OK. Sometimes the colors are wrong. Or it doesn't work at all.

Messages in admin:
Code
Warning: Cannot modify header information - headers already sent by (output started at /customers/1/f/c/globetrotternet.nl/httpd.www/x2/iv-includes/include/JSON.php:115) (/iv-includes/include/ivControllerFront.class.php:115)
Code
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON has a deprecated constructor in /customers/1/f/c/globetrotternet.nl/httpd.www/x2/iv-includes/include/JSON.php on line 115 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in /customers/1/f/c/globetrotternet.nl/httpd.www/x2/iv-includes/include/JSON.php on line 781 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in /customers/1/f/c/globetrotternet.nl/httpd.www/x2/iv-includes/include/JSON.php on line 795
I have disabled the display of php messages in the control panel of my host one.com.
I tested with Firefox on windows 10.
Rene
http://www.globetrotternet.nl/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Error messages

20 Feb 2016, 22:22

Ok. As mentioned, I can't speak for X2 in regards to PHP 7.0. If you need X2 to work without messages, you may need to downgrade. X2 is not a product we plan to update, because it is outdated on many levels.

X3 should work nicely with PHP7.
 
User avatar
globetrotter
Imagevue Expert
Topic Author
Posts: 844
Joined: 18 Oct 2006, 13:16

Re: Error messages

21 Feb 2016, 08:20

globetrotter wrote: In the html it is only visible for a split second.
mjau-mjau wrote:I would like to see this. If PHP displays anything with "warning" or "notice", it means PHP error reporting would be on somehow ....

We do need to improve a few things for PHP 7 though ...
I just wanted to show you what I mean. :)
Not a real problem for me. I easily can switch back to php 5.6.

Thanks for the answers
Rene
http://www.globetrotternet.nl/