I have an issue with pages and block saving. I have some blocks and pages that have been imported by the theme (Porto theme). When I try to save them I get a 404 error.
I found out that the problems seems to be "style" and "script" tags. When there is one of this tags the page doesn't save and there is the error.
I checked the permissions but I can't resolve this problem. Any idea?
Magento version 2.3.6
Its preferable not to use style and scripts in blocks. But still if you want to use the same then first go to your database and then delete the content for this particular block from the database and then again save the content from admin.
Hope it helps!
Thank you.
I tried your solution with db. Unfortunately it didn't worked (still 404 error after saving). If I shouldn't use style and scripts in pages where should I put them?
Hi @Miroir Studio,
Open apache2.conf file
For Ubuntu, the file /etc/apache2/apache2.conf. To edit this file run command
sudo vi /etc/apache2/apache2.conf
Update like this:
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory>
Hope this can help you! Let me know if you need further assistance.
_________
If issue solved, Click Kudos & Accept as Solution.
Can't I simply insert that directives in the .htaccess?
If not I need to select the magento installation directory right (because my root is different from /var/www)?
Hi @Miroir Studio,
You can replace the path to the root directory containing your Magento code in the "Directory" . tag
Hope this can help you! Let me know if you need further assistance.
__________
If issue solved, Click Kudos & Accept as Solution.