cancel
Showing results for 
Search instead for 
Did you mean: 

CMS pages/blocks save error

CMS pages/blocks save error

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

5 REPLIES 5

Re: CMS pages/blocks save error

Hi @webmasterm0d03 

 

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.

Re: CMS pages/blocks save error

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?

Re: CMS pages/blocks save error

Hi @webmasterm0d03,

 

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.

Marcus | LitExtension Expert
https://litextension.com/

Re: CMS pages/blocks save error

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)?

Re: CMS pages/blocks save error

Hi @webmasterm0d03,

 

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.

Marcus | LitExtension Expert
https://litextension.com/