INN / doubleclick-for-wp

WordPress plugin for serving Google Ad Manager ads
https://wordpress.org/plugins/doubleclick-for-wp/
GNU General Public License v2.0
25 stars 11 forks source link

Error "Accessing static property DoubleClick::$enqueued as non static" #37

Closed samueldjack closed 5 years ago

samueldjack commented 7 years ago

We're using the DoubleClick for Wordpress plugin on the same site as the WPLR Sync plugin.

When we invoke the WPLR sync plugin it exposes an error in the DoubleClick-for-Wordpress plugin:

The error is Accessing static property DoubleClick::$enqueued as non static it occurs in this code here.

I think the fix is to change the line in question to if(!self::$enqueued) {.

There's also an identical error two lines below.

benlk commented 7 years ago

Hi Samuel,

Thanks for your bug report. Can you answer these questions for me, please?

samueldjack commented 7 years ago

Hi Ben,

Sorry for not getting back to you sooner. To answer your questions:

  1. Yes, that's the one
  2. No, WP_DEBUG is false
  3. PHP 7.1
  4. Wordpress 4.7
  5. I'll have a look to see if that new version helps.

Thanks!

izzygld commented 7 years ago

i have the same error after deactivating all other plugins still get this error!

Notice: Accessing static property DoubleClick::$enqueued as non static in /var/www/vhosts/local.jewishaction.com/public/content/plugins/doubleclick-for-wp/dfw-init.php on line 96

rclations commented 7 years ago

Hey @izzygld & @samueldjack thanks for the reports here. We've got some updates coming out soon that should resolve these issues. Stay tuned