Plugin

Archived
Forum
(read-only)

GWcode Categories

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Leon Dijk

     

Compatibility with 2.11.1?

Support Request

ejaeDesign
ejaeDesign

I’m getting a “This site can’t be reached” error when using GWCode Categories with EE 2.11.1.

Any reason for this? Haven’t seen it with any other EE version.

Thanks!

ejaeDesign
# 1
ejaeDesign

To add, this is the generated error message:

Severity8192
Message
Non-static method Gwcode_categories::usage() should not be called staticallyassuming $this from incompatible context
Filename
gwcode_categories/pi.gwcode_categories.php
Line Number
29 

Changing the function usage() to public static usage() doesn’t seem to make a difference.

Thanks in advance!

ejaeDesign
# 2
ejaeDesign

Hey Leon, could you take a issue above? We’re stuck trying to get past this issue. Thanks!

ejaeDesign
# 3
ejaeDesign

Hi Leon, just updated this to “Support Request”, hoping to get an answer from you. Thanks!

Tyssen
# 4
Tyssen

I’m getting this on 2.11.1 but line 29 is just calling the usage function so setting it to nothing solves the issue for me.

Jay F
# 5
Jay F

Seems that changing

gwcode_categories::usage() 

to

(new gwcode_categories)->usage() 

on ln 29 fixes the problem.

litzinger
# 6
litzinger

I think changing that line to this is more appropriate.

Gwcode_categories::usage()

It needs to be the same case as the class name.

Oxygen Smith
# 7
Oxygen Smith

I can confirm that BoldMinded’s fix works for me.