We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

PHP Errors: should not be called statically, assuming $this from incompatible context

How Do I?

Eastwood Design's avatar
Eastwood Design
605 posts
about 10 years ago
Eastwood Design's avatar Eastwood Design

I am getting these errors from plugins. This one is for GW Cat Menu. The plugin is ver 2.0 which is the most recent version available.

A PHP Error was encountered Severity: 8192

Message: Non-static method Gwcode_catmenu::usage() should not be called statically, assuming $this from incompatible context

Filename: gwcode_catmenu/pi.gwcode_catmenu.php

Line Number: 19

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/user/admin/codeigniter/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 479

I tried the EE suggestions bug fix but it is not helping: admin.php and index.php

error_reporting(E_ALL & ~E_STRICT);

EE ver 2.9.2

How do I fix this problem??

       
Eastwood Design's avatar
Eastwood Design
605 posts
about 10 years ago
Eastwood Design's avatar Eastwood Design

this seemed to help function usage() To this:

public static function usage()

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
about 10 years ago
Robin Sowell's avatar Robin Sowell

That’s exactly the right long term solution. The error reporting tweak was meant for dealing with large numbers of files quickly- it was basically hiding the error.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.