Jump to content

Archived

This topic is now archived and is closed to further replies.

stewart77

Problems with site after php-upgrade Unoeuro

Recommended Posts

stewart77

After our serverhost unoeuro did a php-system-update our page torbenhein.dk displays odd text on background image and the same text on a ,briefly shown, white backgroundpage when one changes from one page to another - we are a a loss regarding what to do, we checked all plugins one by one

 

Host: unoeuro.com

Site url: torbenhein.dk

Plugins: - Aksimet

              - Dashboard maintennace mode

              - Enhanced text widget

              - Hello Dolly

              - Hooker

              - Image Widget

              - Pagelines Section

              - Simple Css Lite

              - Slick Contact Forms

              - The Countdown

              - Wordpress SEO

 

Wordpress version. 4.1 da_DK

            

 

I would love to upload a screenshot but it seems to be blocked.

Share this post


Link to post
Share on other sites
Danny

Hi,

 

I have visited your website and navigated a few pages and I am unable to see any issue. Therefore, can provide a screenshot please, simply use an image hosting service such as imgur.

 

Also what PHP version were you using and what version have you been upgraded too ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
stewart77

Hi again

 

I solved the problem (I think) after deleting this line:

$this->ptype = PageLinesTemplate::current_admin_post_type();

 

The problem started when UNOEURO upgraded to php. 5.6, but I guess it should be solved now?

 

 

Line

Share this post


Link to post
Share on other sites
Danny

Hi,

 

There should be no need to remove code from the core files. Therefore, can you restore that line of code to the file you changed. So we can see the issue first hand please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
stewart77

I can't do that now, since the owner of the site doesnt want me to.

 

But the errors looked like this:

 

Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible in /var/www/torbenhein.dk/public_html/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30

 

I'm well aware this isnt the best way to present the problem. But after the update I couldnt even log on to the site. All I saw was the above line and some others resembling it. I had to close down the base theme and pagelines via UNOEURO in order to access the site.

Share this post


Link to post
Share on other sites
jais

I have the same problem with a site using PageLines Framework hosted at Unoeuro.

 

To see the error: www.waterloo-copenhagen.dk 

Share this post


Link to post
Share on other sites
Danny

As I am not able to see this, it is very likely that you have either WP_DEBUG set to true in wp-config.php file or your host is for some reason allowing PHP to display warnings, notices and errors. Ask them to switch this is off, if WP_DEBUG is set to false.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
cicki

Hello,

I have the same problem. My hosting provider sent a list of sites that need to upgrade the php version, and I did upgrade from 5.3 -> 5.6.

And had 4-5 rows of error messages on the site like

 

"Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible in /var/www/....the site url.../public_html/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30"

 

The site is

http://www.poisson-bleu.com

but I had to switch back to version 5.3 again, the owner will not be content to have these messages :)

 

The problem is that the hosting company will soon not let us use the 5.3 ...

 

For info all plugins, the theme and WP are the latest versions.

Thanks in advance for all help.

 

Christina

Share this post


Link to post
Share on other sites
Danny

Hi,

 

If you're seeing those messages, then it is likely that for some unknown reason your web host has PHP warnings, notices and errors set to on. This should be disabled on live sites, speak to your host and see if they do have this option on.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
cicki

Hi,

I have now contacted the host (OVH). I did explain exactly the above but they say "your plugin PageLinesTemplate is not compatible with the new versions of php".

I don't know what to do now. Soon they will disable all old php versions, the site will not work with the latest php and the site will have these error messages.

Help!

Share this post


Link to post
Share on other sites
Danny

The message you seen:

 

"Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible in /var/www/....the site url.../public_html/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30"

 

That is a printed message if you do not have WP_DEBUG set to true and is set to its default value of false, the your web host provider has PHP errors, warnings and notices set which is a setting that shouldn't be used on a production site. We recently in the last few months released an update that allowed these legacy products to work with the latest versions of PHP.

 

Therefore, you will need contact your host and ask them to provide you with your PHP info. Once you have that, please reply here and provide a link to that information.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
cicki

Thanks for the answer.

I did upload a phpinfo file:

http://www.poisson-bleu.com/phpinfo.php

 

(did I understand right, is that what you need to check?)

(or do I need to switch to php 5.6 - but the problem is the error messages, the client will not be content to see)

Please let me know if you want me to change the php version to be able to check.

Share this post


Link to post
Share on other sites
cicki

Thanks a lot for this answer and also the screenshot, this will help in the communication with the hosting co (I have the impression that they don't really listen but this is a concrete and good fact to show, I'll will send the url). I'll let you know their answer. Thanks!

Share this post


Link to post
Share on other sites
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
cicki

Did get an answer today (at least this time they listen :)) - but unfortunately I still see the messages when switching to php 5.4.

The solution was to write following in the .htaccess file: 

SetEnv DISPLAY_ERRORS 0

I did, but after switching to php 5.4 the errors are visible again and look like:

http://poisson-bleu.com/images/error-message.jpg

 

(so of course I switched back again)

 

I did copy/paste the code they sent - do you have an idea if I'm doing it wrong or what could cause this (I mean why their solution don't work)?

 

Sorry for taking your time again with this ... for the moment it's ok as long as I can stay with this php version but need to plan for the upgrade ...

Thanks,

Christina

Share this post


Link to post
Share on other sites
Danny

Christina, the issue is your server not the PHP server. Your servers PHP has been configured to display errors, which shouldn't be on a production site. Please tell your web host provider to disable this option. Only they can do this, adding a snippet to your htaccess file will not resolve the issue, tell them to disable that option and the message will no longer be printed to your screen.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
cicki

Hi again,

I get a new answer from the hosting co this morning, sorry if the translation is not good (it's originally in french) but I hope you could understand.

Briefly, they ask me to modify in the theme itself...

 

The answer:

You must log in to your FTP space and modify the files concerned by "warning" (that you have) by disabling the beginning of your file display PHP errors.

 
For example, the "class.options.metapanel.php" file, place (at the beginning of your code) the line below:
 
ini_set ("display_errors", 0); error_reporting (0);
 
This operation is programming and this is your responsibility.
We inform you that you can check out the link below for PHP errors:
 
Note: This link is external to OVH
 
We also note that we activate the error display on the server and that we can not change its configuration.
 
If you do not know how to do it, you can call a webmaster.
Our technical support is available to our customers to help them with technical requests related to deals that are the areas, accommodation or email.
In your case, the operation you are attempting to set up the programming and our support is not involved in the development of customer sites, the establishment of specific features. This is not the responsibility of our support because we have no web developers.
 
---
 
So both say it's the other ... and for me of course I could not say who is right or wrong ...
But one indication could be, that I have several Wordpress sites but with other themes at OVH, and all the other I could update without any problem to php 5.4... It's only this one with the Pagelines framework causing problem.
One solution could be to do a child theme and do the changes in the theme as OVH recommend.

Share this post


Link to post
Share on other sites
cicki

Update:

 

I did add the code

ini_set ("display_errors", 0); error_reporting (0);

in the class.options.metapanel.php file as they proposed, and updated to php 5.6.6, and the errors are not coming up anymore.

Share this post


Link to post
Share on other sites
camaran
The best solution is to use child theme


Inviato dal mio iPhone utilizzando Tapatalk

Share this post


Link to post
Share on other sites
Danny

cicki - By editing the core files, you're now void of all support. I am not sure as to why your host is asking your to add the error_reporting function to a specific file, when all they need to do is disable a PHP settings which should be off from the beginning. By your host refusing to do this, I would highly recommend switching host.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
cicki

Hi again Danny,

 

I understand and also agree.

 

This is the first time I had a bad experience with OVH, I have nearly all the sites, since many years, with them so I'll stay and will consider this as a temporary solution, probably making a child theme later with this changing of code (I did it directly in the core files, just to test. I did not yet do any child theme on this site since there are no other modifications, and the client really want the minimum of work on the site). Normally OVH are very good and helpful so I'm surprised this time. 

 

Anyway, for the moment the problem is patched for now, thanks a lot for your good support, help and patience!

 

Christina

Share this post


Link to post
Share on other sites
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×