• Resolved adamtba

    (@adamtba)


    A few weeks ago I updated the WooCommerce Custom Tabs plugin (which has been working great) as well as the main WooCommerce plugin. I didn’t notice it at the time, but the extra tabs we had on our page stopped showing. Looking at the admin, I saw that the Custom Tabs plugin was somehow deactivated. So I tried reactivating it, but it won’t activate. Instead, I get this error:

    Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected T_FUNCTION in …. /wp-content/plugins/woocommerce-custom-tabs/woocommerce-custom-tabs.php on line 211

    Do you know how this issue can be resolved? I’ve a lot of data in these tabs, so if deleting the plugin means deleting all this data, that would be a problem. I’m comfortable editing PHP files, if that’s part of the solution. Thanks!

    https://www.ads-software.com/plugins/woocommerce-custom-tabs/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WebshopLogic

    (@webshoplogic)

    Which version do you use? Pro or Lite, and what is the version number?
    We should know this to analyse the problem.

    Thread Starter adamtba

    (@adamtba)

    Thanks for the response, and sorry for the lack of detail in the original post. Lite. Version 1.0.16

    Plugin Author WebshopLogic

    (@webshoplogic)

    Hi Adamtba!

    In this line there is a so called PHP anonymous function.

    usort($product_tabpage_postslist, function($a, $b)
    {
    	return intval($a->priority) - intval($b->priority);
    });

    Anonymous functions are available since PHP 5.3.

    Can you please check if your PHP version is at least 5.3?

    Thanks,
    Peter

    Thread Starter adamtba

    (@adamtba)

    Ah, thank you! Yes, that was the issue — I switched from PHP 5.2 to 5.3 and was then able to activate the plugin. Thank you for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin Won't Activate After Update’ is closed to new replies.