Install error with plugin Ad Sharing

Dear DEVS,

I am on WP 4.6.1 and multisite install. When activating on network type i get: Parse error: syntax error, unexpected 'new' (T_NEW) in /home/..../domains/......./public_html/wp-content/plugins/ad-sharing/ad-sharing.php on line 44 (the dots are my username and domain)

  • Adam Czajczyk
    • Support Gorilla

    Hello Daan,

    I hope you're well today and thank you for your question!

    I believe your site is running on PHP 7.x, is that right? This error would be related to a PHP 7 syntax that has restricted some techniques used until now and it seems that our plugin needs an update then.

    Thank you for pointing it out and I already reported it to our developers as a compatibility bug.

    As a "quick fix" I attached a .zip file to this post that you may use to make the plugin work until an update comes out. To apply it to your site please follow these steps:

    1. Download and extract the .zip file to your local drive
    2. Access your site via FTP (or. cPanel File Manager)
    3. Go to the "/wp-content/plugins/ad-sharing/" folder
    4. Upload the "ad-sharing.php" file from inside attached .zip archive to that folder on your server, overwriting existing file there.

    I tested that "patch" on my own setup and it seems to be working fine.

    I hope that helps!

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.