Skip to content
WP Intense Q & ACategory: Scalability Produplicate function
Ron asked 11 months ago

Hi,After enabling scalability pro, we\'re getting a 500 error. Diving into the error (posted privately), it appears that the theme the website is using something that scalability pro is also using:Snippet:PHP message: PHP Fatal error: Cannot redeclare tgmpa() (previously declared inIs there any simply solution here, or how should this be approached?

1 Answers
Dave Hilditch Staff answered 10 months ago

Hi – our plugin performs an IF (!function_exists(‘tgmpa’)) prior to declaring the function.

The other plugin should also do this – please notify the authors of that plugin that they have coded this function definition poorly.

The actual code from tgmpa (a function for handling plugin updates) includes this if (!function_exists…) code so I’m not sure why they code this in that way.

Alternatively, you could add the if statement yourself around their function declaration by altering their code.

Come chat to me on our Discord server to ask questions - Dave Hilditch, WP Intense

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.