Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
Have you fixed the Wordpress 4.3 deprecated function bug
Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Aug 20, 2015 - 3:31 am
sp_QuotePost Quote

Hi,

I'm using an older version of Simple Press and this creates a huge amount of PHP notices when upgrading to WP 4.3 because you are using a deprecated construct method calling $this->WP_Widget

It's everywhere in your code. I'm curious to know whether this was fixed in the latest release?

Thanks

Blaise

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 20, 2015 - 3:56 am
sp_QuotePost Quote

Blaise Fiedler said
Hi,

I'm using an older version of Simple Press and this creates a huge amount of PHP notices when upgrading to WP 4.3...

I am not seeing any nor have we any other reports - and I have been using 4.3 snce the start of its development.

...because you are using a deprecated construct method calling $this->WP_Widget

Can you link me to further information on this so I can review it? If we are, actually, inadvertently doing something wrong then we will want to fix it. But a very quick search through the WP Codex didnlt throw up any mention of deprecation on this.

It's everywhere in your code. I'm curious to know whether this was fixed in the latest release?

Everywhere? There are no widgets in our core code and only two SP plugins that contain a widget. How can it be everywhere?

andy-signature.png
YELLOW
SWORDFISH
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Aug 20, 2015 - 9:12 am
sp_QuotePost Quote

don't know if this is what you are looking for yellow, came across the same question on our wp theme forum and they referenced this

https://make.wordpress.org/cor.....press-4-3/

https://gist.github.com/chrisc.....1011b1839d

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 20, 2015 - 9:18 am
sp_QuotePost Quote

first its not a bug or error... its just a notice which wp introduced in 4.3...  so of course no way to have handled it previously... and of course, you shouldnt be displaying notices on a production site anyways...

simple press version 5.5.9 (OP stated using older version) does not use php4 constructors...

Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Aug 24, 2015 - 6:45 am
sp_QuotePost Quote

Dear Yellow,

Thanks for your answer. I must have been confused when I wrote my first post as I am now unable to fund mentions of WP_Widget in your code: my apologies.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 24, 2015 - 6:50 am
sp_QuotePost Quote

Good news! I was wondering if I had missed something fundamental.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626