• I am taking over for someone who hasn’t worked on this site in a few years. I updated everything theme updates and plug-ins but this shows up and I don’t know how to fix them. Then if I try to change themes I get additional warnings.

    Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible context in /home/tiaphoto/tiahobermanphotography.com/wordpress/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 /home/tiaphoto/tiahobermanphotography.com/wordpress/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 /home/tiaphoto/tiahobermanphotography.com/wordpress/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 /home/tiaphoto/tiahobermanphotography.com/wordpress/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem. When i download my WordPress project on local i receive this error:
    Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\website\wp-content\themes\pagelines\admin\class.options.metapanel.php on line 30

    I hope receive help, best regards and thanks a lot.

    I’m trying to deal with this issue as well. Running PageLines Framework 2.4.6 (with child themes), in WordPress 4.4.1

    As a start, I’ve found elsewhere online [1] that deleting (or commenting out) this line in /themes/pagelines/admin/class.options.metapanel.php will eliminate these specific errors from the public site:

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

    I find that other errors crop up on the admin side, but in the short term at least the public side is tidy.

    Note the warnings about the above ‘fix’, that modifying core theme files can have repercussions later or when seeking support, but as far as I can tell the PageLines crew is well beyond this product and onto their later-generation ones. This might also be a precursor to further PHP errors as the Framework coding ages.

    [1] e.g. https://forum.pagelines.com/topic/38388-non-static-method-pagelinestemplate/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecated: Non-static method warning after updates’ is closed to new replies.