A typical error looks like this:

An error of type E_ERROR was caused in line 2126 of the file /wp-content/themes/novo/tgm/class-tgm-plugin-activation.php. Error message: Cannot redeclare tgmpa() (previously declared in wp-content/plugins/picu-download/includes/class-tgm-plugin-activation.php:2175)

This error is caused by your theme or another plugin, which most likely uses an old version of the tgmpa library – which we are using in picu as well – or by a wrong implementation of said library.

How to fix it

Are you comfortable editing some code?

You probably only need to change one line to fix your theme/plugin:

1. Connect to your web hosting via FTP

2. Locate the file mentioned in your error message. Using our example from above, that would be: /wp-content/themes/novo/tgm/class-tgm-plugin-activation.php

3. Download the file

4. Open the file in a text editor and scroll down to line, mentioned in the error message, again using our example that would be 2175.

5. Now take a look at the line. You need to replace what ever is in there, probably something like the following:

	if ( ! function_exists( 'novo' ) ) {

with this:

	if ( ! function_exists( 'tgmpa' ) ) {

6. Save the file

7. Upload the file to the server (replacing the existing file)

After that, everything should work as expected.

Please note that, this change will be overwritten, when you update your theme/plugin! (Therefore you might want to forward this information to the theme/plugin developer, so they can fix it for all of their customers – and so that updating won’t bring the error back in the future.)

Still having issues?

In your WordPress Admin go to picu > Settings > Debug Info and send the contents of this page and your questions to support@picu.io.