Salve,
ho notato che l'editor non funziona in maniera corretta. In particolare, come da allegato, se clicco sul pulsante "Add/Modifie" link non funziona e spesso fa scrollare la pagina tutta in basso.
Tutti i plugin e wordpress sono aggiornati ma il problema persite.
Potete indicarmi una soluzione grazie.
Anna
Hello,
Welcome to Toolset Support.
I tested the "Insert/edit link" button on a Types WYSIWYG field with the latest Toolset versions, in both the block editor and the classic editor. The link box opens normally and the page does not scroll, so the problem is probably caused by a conflict with another plugin or the theme on your site.
Please check this on a staging copy of the site if possible:
1. Switch to a default theme such as Twenty Twenty.
2. Deactivate all plugins except Toolset Types, Toolset Blocks, Toolset Forms and Toolset Access.
3. Edit a post of this type, select some text in the WYSIWYG field and click the link button.
If the link button works, reactivate the theme and the plugins one by one and test again after each one, until the problem comes back. That tells us which one causes it.
Also, please make sure you use the latest versions of Toolset plugins:
https://toolset.com/account/downloads/
Thanks.
Hello, Christopher,
I've followed your instructions but, unfortunately, it doesen't worked. I've latest versions of Toolset plugins.
Could you give me some more tips?
Thanks.
Hi,
Would you please provide the login information by setting the next reply as private?
please make sure you have a backup and I will check.
Thanks.
Hello,
Thank you for the staging access. I found the cause, and it is not related to Toolset.
Your server blocks the file WordPress uses to load its admin styles (wp-admin/load-styles.php). It returns a "403 Forbidden" error.
Because of this, the WordPress editor stylesheet is never loaded. The link box opens, but it has no styling and stays hidden, so the page only jumps to the bottom.
I confirmed this on your staging site. When the editor stylesheet is loaded directly, the link box opens and works normally.
Please follow the steps below:
1. Make a backup of the wp-config.php file in the main folder of your site.
2. Open wp-config.php and add this line above the line that says "That's all, stop editing!":
define( 'CONCATENATE_SCRIPTS', false );
3. Save the file.
4. Clear the WP Fastest Cache cache and your browser cache.
5. Edit a document, select some text in the field and click the link button.
With this setting, WordPress loads each stylesheet on its own instead of through the blocked file.
You can also ask your hosting provider to allow access to wp-admin/load-styles.php and wp-admin/load-scripts.php. Then the line above is not needed.
Please apply the same change on your live site too, since it likely has the same server rule.
Thanks.
Hello,
thank your very much for your quickly answer. Just to know this setting on my server it could be applicate to increase security. If I run your change do you think it could be a possible security problem?
Thanks, all the best.
Alessandro
Hello,
No, this change does not create a security risk.
The CONCATENATE_SCRIPTS setting is a standard WordPress option. It only tells WordPress to load the admin styles and scripts as separate files, instead of combining them through load-styles.php and load-scripts.php.
It does not unblock or change those two files. Your server's rule stays in place and keeps protecting them, so your security setup is the same as before.
The setting only affects the WordPress admin area. Your website's front end loads styles the same way as before, so visitors will not notice any difference.
The only effect is that admin pages load a few more small files, which is not noticeable in normal use.
Many hosts block load-styles.php and load-scripts.php on purpose, because they can be misused to overload a server. That is why this setting is the right fix when those files are blocked.
Thanks
Hi,
I’m so sorry to bother you again, but even after your change, the editor still doesn’t work in all sections. For example the editor play in "Scopri Ronco s/Ascona sezione" but not in "Albo comunale documenti" and others. Could you check from backend and give more tips?
Thank you
Alessandro
Hello,
Thank you for the details. I checked “Albo comunale documenti” on the staging site and found why it still failed there.
In that section, WordPress loads the editor stylesheet late in the page, and it still requests it through wp-admin/load-styles.php. Your server blocks that file with a “403 Forbidden” error, so the link box stays hidden. In “Scopri Ronco s/Ascona sezione” the same stylesheet is loaded directly, which is why it worked there.
I added a small code snippet on the staging site that loads the editor stylesheet directly on admin pages. You can find it in Snippet > All Snippets, with the title “Load editor stylesheet directly in admin (Toolset support)”:
add_action( 'admin_enqueue_scripts', function () {
wp_enqueue_style( 'editor-buttons' );
} );
I normally add such code in Toolset > Settings > Custom Code, but your site does not allow editing code there, so I used the Code Snippets plugin that is already installed.
With the snippet active, the link button works in “Albo comunale documenti” on staging. Please check the other sections and add the same snippet on your live site.
The permanent solution is to ask your hosting provider to allow access to wp-admin/load-styles.php and wp-admin/load-scripts.php for logged-in users.
Thanks.