Skip Navigation

[Resolved] Fatal Error after updating Toolset Access

This thread is resolved. Here is a description of the problem and solution.

Problem: I am experiencing a fatal error after updating Toolset Access.

Fatal error: Cannot declare class Toolset_Shortcode_Generator, because the name is already in use in /path/to/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.shortcode.generator.class.php on line 31

Solution: Make sure to update all Toolset plugins to their latest versions. In this case, Access should be updated and activated after all other Toolset plugins are updated.

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 13 replies, has 3 voices.

Last updated by stuF-2 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#902096

I am trying to: Upgrade Toolset Access, CRED and Views

Link to a page where the issue can be seen: hidden link

I expected to see: An update and a running site

Instead, I got: The site is not responding and I have received a PHP Fatal Error:

Fatal error: Cannot declare class Toolset_Shortcode_Generator, because the name is already in use in /home/essind75/public_html/sportkote.com/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.shortcode.generator.class.php on line 31

I cannot Access WordPress Admin Panel to obtain a debug info

#902126

To keep this up to date. I used my backup from WordPress and deleted the plugins folder and reinstalled my plugins folder from 4 days ago. My site is back up but I have not updated Toolset access until I am aware the error is fixed.

#902139

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Would you mind allowing me to have FPT and Admin access to the website so that I can try updating the plugin for you ?

Thanks,
Shane

#902181

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for the credentials,

I tried logging in but the credentials don't seem to work.

Could you check on them for me and let me know if they work for you ?

Thanks,
Shane

#902189

I logged into WordPress and they worked fine for me. As for the FTP below is the xml that I was given by my host for Filezilla

Original file name FTP tech@essind.info.xml

<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<FileZilla3>
<Servers>
<Server>
<Host>ftp.essind.info</Host>
<Port>21</Port>
<Protocol>0</Protocol>
<Type>0</Type>
<User>tech@essind.info</User>
<Logontype>2</Logontype>
<TimezoneOffset>0</TimezoneOffset>
<PasvMode>MODE_DEFAULT</PasvMode>
<MaximumMultipleConnections>0</MaximumMultipleConnections>
<EncodingType>Auto</EncodingType>
<BypassProxy>0</BypassProxy>
<Name>ftp.essind.info</Name>
<Comments/>
<LocalDir/>
<RemoteDir/>
<SyncBrowsing>0</SyncBrowsing>
hidden link
</Server>
</Servers>
</FileZilla3>

#902190

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

The wordpress password doesnt work for me nor does the FTP.

What I was going to do was to install the plugin manually by downloading it from the link below.
https://toolset.com/account/downloads/

Then uploading it.

Please let me know if this helps.
Thanks,
Shane

#902194

Ok so I just noticed that in the WP password there is a y that is not supposed to be there both FTP and WP passwords are the same, and I just tried it out again.

#902201

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thanks the backend login now works but the ftp still doesn't work.

Filezilla changes the url to just essind.info when i try logging in.

Thanks,
Shane

#902234

I tried to find out why the FTP that I set up for you is not working but I could not. I am not able to give you the log in and password for the main FTP but I can have you so a remote into my computer and have you work on the site though a remote access session.

#902494

Good Morning Shane, I was just wondering about my question from yesterday

#902518

Hi, Shane is on holiday today and I have been asked to check on this ticket. I hope that's okay with you. I was able to log in to wp-admin using the updated credentials you provided, but the User does not seem to have permission to access the plugins page. Can you confirm that the User has admin privileges? I see this error:

Sorry, you are not allowed to access this page.
#902525

I'm sorry I had an issue this morning where the site was down completely and the host had to reset. During the reset it changed the tech user from admin to subscriber I just put it back to admin

#902594

Okay thanks. I logged in and used the Duplicator plugin (already installed) to create a clone of the site. Then I installed that clone locally so I could run some tests.
- First I deactivated all plugins except Types.
- Then I updated to the latest version of CRED, then I updated to the latest version of Access.
- Finally I activated Views, then activated Access, then activated CRED.

I don't see any fatal errors on my local site, so could you please follow those same steps on your live site and let me know the results? If that works as expected, continue reactivating other plugins as needed.

#902595

So it ended up that Access needed to be updated last after CRED. Thank you for the assistance