Skip Navigation

[Resolved] Error with php to edit templates

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

Problem:
The customer is unable to edit a template in their WordPress site using the Toolset plugin. They provided a Loom video demonstrating the issue and noted that they updated all plugins but still couldn't edit the template.
Solution:
We suggested updating the Toolset Blocks to the latest version. When this did not resolve the issue, we requested temporary access to the site for further investigation. Upon accessing the site, we identified a corrupted template caused by a specific code excerpt related to an image block. Removing this excerpt made the template accessible and editable again. We advised the customer to recreate the removed piece (Imagen IMDb) to restore full functionality.

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 7 replies, has 2 voices.

Last updated by Mateus Getulio 7 months, 1 week ago.

Assisted by: Mateus Getulio.

Author
Posts
#2698179

Tell us what you are trying to do?
Im trying edit a template but i cant.

Is there a similar example that we can see?
hidden link

What is the link to your site?
nicolas.demui.com

#2698225

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Antonio,

Thank you for contacting our support.

We were dealing with a similar issue and we recently released a patch to fix it. If you're not running Toolset Blocks version 1.16.15(https://toolset.com/download/toolset-blocks/#changelog) yet, then the following steps might fix the issue for you:

- Inside your wp-admin please go to Plugins -> Add New.
- Then click on the "Commercial" tab and click on the "Check for updates" button in the Toolset section
- After that please select every red plugin available in the list and then click on "Download" at the bottom of the grid.

After that, please try to edit the template again and check if the issue is fixed.

Thank you, please let us know.

#2698290
plugins.png

Hello Mateus! And thanks!

Yes, i have update all plugins but i cant edit the template.

#2698359

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://toolset.com/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

#2698490

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Thank you for sharing that information.

I'd like to ask permission to make a copy/staging version of your site where I can debug this closely without affecting the live site.

I'll make sure to delete this copy as soon as we get this issue fixed.

I'm afraid of debugging directly on the live site and cause issues to your visitors. Also, it is important to test a different setup as part of the troubleshooting.

Thank you, please let us know.
Mateus

#2698526

Of course, no problem. So much tanks!

#2698669

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I was able to find a possible workaround in our staging copy of the site. Which is to temporatily downgrade WordPress to version 6.4.4.

While I tried to apply the same workaround to the site nicolas.demui.com it seems like it didn't work in there.

I apologize for the incovenience.

I tried reverting my change but it looks like the FTP credentials are longer working for me.

I enabled the private fields for you to review the FTP connection details again.

Thank you, please let us know.
Mateus

#2698796

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

template.png

Hello there,

I checked it and it looks like the moment I remove the following excerpt from the template directly in the database, it gets accessible/editable again:

<!-- wp:image {"lightbox":{"enabled":false},"width":"100px","sizeSlug":"large","linkDestination":"custom","metadata":{"name":"Imagen IMDb"},"dynamicAttributes":{"url":{"isActive":true},"toolsetDSVersion":"252000"},"imageObject":{"url":{"image":{}}}} -->

It looks like somehow this part had corrupted the template.

Now the template is available for edition again and in the front end it is looking like shown in the screenshot.

Can you please try to edit it again and recreate the piece I removed(Imagen IMDb)?

Thank you, please let me know how it goes.
Mateus