Jump to content

Archived

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

carl007

Non-static method PageLinesTemplate

Recommended Posts

carl007

Hi, 

 

Its been a while have visited the forum or followed up on changes withing Pagelines. 

 

I have site running pagelines 2.4.6 and today i got the following error messages and i desperately need help in fixing the issue

 

Framework Version: 2.4.6
WordPress Version: 4.1.1
Plugins in Use: 
Server/Host: one.com
 
Details: I have error codes showing on the home page of the site. 
 
Please advise on how i can get rid of this codes. 

check my mini blog
www.depictdesign.com

Share this post


Link to post
Share on other sites
carl007

Please find below the error code 

I have had to switch to another theme as a temporary measure.. 

 

 

Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible context in /customers/3/9/3/mansag.org/httpd.www/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30 Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible context in /customers/3/9/3/mansag.org/httpd.www/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30 Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible context in /customers/3/9/3/mansag.org/httpd.www/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30 Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible context in /customers/3/9/3/mansag.org/httpd.www/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30


check my mini blog
www.depictdesign.com

Share this post


Link to post
Share on other sites
carl007

Hello Again, 

 

I found this post and i deleted the code as a temporary measure and the site is back to normal 

 

http://forum.pagelines.com/topic/38196-problems-with-site-after-php-upgrade-unoeuro/?hl=non-static+method+pagelinestemplate%3A%3Acurrent_admin_post_type%28%29+should+not#entry225251 

 

thanks 


check my mini blog
www.depictdesign.com

Share this post


Link to post
Share on other sites
Danny

You will need to check your wp-config.php file and see if WP_DEBUG is set to true, if so replace it with false. If it is already set to false, then you will need to contact your web host provider and ask them why they have PHP notices set to print when this shouldn't enabled on production sites.

 

Also, by removing core code you will no longer be able to receive support until the file is back to its default.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
dfsdafd23

Same error on my site after updating to 2.4.6. WP_DEBUG is diabled. Additionally, characters are messed up in admin-menu and the page itself. For instance: "don't" has become "don’t" and "indlæggets" has become "indlæggets". Any fix?

 

Website URL: andersaagesen.dk
Framework Version: 2.4.6
WordPress Version: 4.1.1
Plugins in Use: 
Server/Host: unoeuro.com

Share this post


Link to post
Share on other sites
Danny

You will need to speak to your web host provider as this is likely an issue on their end.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
fryheit

hey there, have the same problem. talked to my web host (udmedia.de) and he told me to create a .users.ini with display_errors = 0. will try that

but they also said that it's a problem on your side, here their reply in german and below in english with google translate

Sie können einfach im Verzeichnis der Wordpress Installation eine .users.ini anlegen und dort dann
display_errors = 0
rein schreiben. Desweiteren steht der Standard für die Fehleranzeige auf einen Wert, bei dem Notices nicht angezeigt werden. Dann werden Fehler nicht mehr angezeigt. Allerdings ist die genannte Fehlermeldung sehr wohl ein Fehler seitens des Theme-Entwicklers, welchen er schnellsmöglichst beheben soll, da dieser auf veraltetes Verhalten von PHP setzt. Hierhttp://php.net/manual/de/migration56.deprecated.php finden Sie mehr Informationen dazu.

You can easily create a .users.ini in the WordPress installation directory and then
display_errors = 0
reinschreiben. Furthermore, the standard error for the indicator shows a value at which notices are not displayed. Then errors are no longer displayed. However, the preceding error message is probably a mistake on the part of the theme developer, which he intended to resolve as quickly as possible, because it relies on outdated PHP behaves. Here Http: //php.net/manual/de/migration56.deprecated.php see more information.

 

Share this post


Link to post
Share on other sites
Simon

hey there, have the same problem. talked to my web host (udmedia.de) and he told me to create a .users.ini with display_errors = 0. will try that

but they also said that it's a problem on your side, here their reply in german and below in english with google translate

Sie können einfach im Verzeichnis der Wordpress Installation eine .users.ini anlegen und dort dann
display_errors = 0
rein schreiben. Desweiteren steht der Standard für die Fehleranzeige auf einen Wert, bei dem Notices nicht angezeigt werden. Dann werden Fehler nicht mehr angezeigt. Allerdings ist die genannte Fehlermeldung sehr wohl ein Fehler seitens des Theme-Entwicklers, welchen er schnellsmöglichst beheben soll, da dieser auf veraltetes Verhalten von PHP setzt. Hierhttp://php.net/manual/de/migration56.deprecated.php finden Sie mehr Informationen dazu.

You can easily create a .users.ini in the WordPress installation directory and then
display_errors = 0
reinschreiben. Furthermore, the standard error for the indicator shows a value at which notices are not displayed. Then errors are no longer displayed. However, the preceding error message is probably a mistake on the part of the theme developer, which he intended to resolve as quickly as possible, because it relies on outdated PHP behaves. Here Http: //php.net/manual/de/migration56.deprecated.php see more information.

 

The framework was written using php5.2 when 5.2 was the latest version. PHP 5.4 enabled new strict warnings, by default they should be switched OFF on a production server.

display_errors = 0 will indeed turn that back off and suppress those warnings.

We also updated the functions.php file in the original framework to try and suppress these warnings, seen here: https://github.com/pagelines/PageLines-Framework/blob/master/functions.php assuming thats the theme you are using, you never mentioned that or the version. 

Share this post


Link to post
Share on other sites
TourKick (Clifford P)

Here's a snippet for wp-config.php to disable PHP 'display_errors' when WP_DEBUG is FALSE:

define('WP_DEBUG', false);

if (WP_DEBUG) {
    @ini_set('display_errors',1);
} else {
    @ini_set('display_errors',0);
}

if (WP_DEBUG) {
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
}

 

Share this post


Link to post
Share on other sites

  • Similar Content

    • Jared Smith
      By Jared Smith+
      I haven't figured out how to get the "Sync Loaded Item" option in templates menu of Platform 5 to stay checked. It doesn't give me an option to save settings when I select it, and when I select it then click off the editor, it unselects. Also if I select it before loading a template, it doesn't stay checked there either.  Whats going on?
    • Queue-it
      By Queue-it+
      Hi,
      I created a Pagelines template for a "Post type" post. Whenever creating a new post page it firstly display that template post and I have to manually change it in the scope from "All of type posts " to "Current page". 
      Is there a way to fix that? 
       
       

    • richardjacruz
      By richardjacruz+
      I'm building a website in a dev environment at http://162.144.182.17/~uescocra.
      I want to import a bunch of products, and then have the products have a different template than the default template. 
      I also want to change the default template for blog posts.
      Before I go making changes, can I do this where the post type of "products" has its own global template, and the same with blog posts?
      For instance, in a product I might want to have a widget for categories, similar products, etc., and in the blog I may want list of the latest posts, blog categories, link to an email sign-up landing page, etc.
      Thanks.
      Rich
    • abuzzelli
      By abuzzelli+
      Is there a shortcode or a way to automatically pull the site name into the footer or elsewhere?
    • seanocaside21
      By seanocaside21+
      An old client of mine has come across an issue with their website. 
      The site is fine on the front end but when you log into the DMS editor the 'About' page template isnt available instead the template for the 'Print Services' page appears
      Here is the live About page http://www.digicom.ie/about/. And see attached file for what i see in the back end.
      In the page settings i can see that the wrong page template is active but I'm not sure how this is the case if the live page is correct. The client assures me they didnt activate the template. 
      Any help at all? 

×