I just migrated this site from J3 to J4, and it was working perfectly, until yesterday. That was when I started having some unexplained problems.

I wanted to change the main image on the homepage, named landing.jpg. I used the same code I had before in custom CSS, in the backend of the template. But when I went to save the change to the image name as landing4.jpg, I clicked on the Save button and nothing happened. I could Cancel it and so I did.

When I tried to do a Save & Close on the changes to the template, I got the dreaded 404 error page. I thought it might be the wrong PHP, but that wasn't it.

Someone checked it out for me, and decided I needed to contact you. They thought it was something in T4. I don't know enough to fix it. So I'm hoping you can figure out what is going on. Thanks in advance.

Pat

Hi Pat,

Could you tell me which section you change this image?

I used the name of the file already in the code, landing4.jpg, so it has been in the custom.css file as demonstrated in the screenshot I sent.

This is not a section. When I opened a ticket some time back, I was given the code to add to the custom.css file through the template configuration screen. I was told this is not a section.

But I changed this code without any problems not too long ago, perhaps a week or two ago without any of these problems, and this was after the migration of the site to J4. It worked fine until the Sheriff asked me to use a different image which included the lady jail administrator, which is there now. I would have named it landing5.jpg except for the issues explained in this ticket.

I am unable to save any code in custom.css when using the template styles. Save is not working on the popup screen that shows the contents of the custom.css, and Save is not working when I try to do a Save & Close on the template screen.

So to get the image up as soon as possible, in spite of the Save issue, I named the new image the same as in the custom.css file currently. Is this what you needed to know? I've attached a screenshot for clarity.

Here is the custom.css code:

/* use my own image for the homepage splash and control the opacity */
.demo-home .section-lead {
background-image: url('../../images/landing4.jpg');}
.demo-home .section-lead:before {
background: radial-gradient(0% 20% at 20% 20%, #111126 0%, #6c6c77 25%);
opacity: 0.2;
}

The issue is with Save when going through the template in the backend of Joomla using JA Blockk.

Thanks for any help you can give me.

Hi Pat,

When trying to save settings, the server responded with a 404 status which means that there is specific rule that preventing from saving settings.

Do you have any 3rd party extension installed or update in server side before this issue happens?

I ran a report in Watchful that gives a report all the changes and mods made in the site for the last month. Let me know if you see anything that stands out.

The Akeeba stuff was where there was the migration software and the J4 version both installed.That was just a few days ago.

HI Pat,

Could I take a backup of your site with Akeeba backup and debug in my local?

Yes, you may. My host made a change to my .htaccess file and turned off Mod Security. He said it left an opening for hackers and didn't like it, so if we could find the issue elsewhere, that would be great.

Thanks,
Pat

Hi Pat,

I think that may prevent the saving feature as I just restored a backup of your site in my local environment and it can save normally:

But for that security reason, you can temporarily add the custom css code manually into the file: /templates/ja_blockk/local/css/custom.css

So what are you telling me? What caused the problem? The Mod Security? I have a ton of other Joomlart sites running on the same server, and they never gave me any problems with updating the custom.css file from within the template section of the site. I guess, I'm not sure what you are saying. If I turn Mod Security back on in the .htaccess file, I still have the problem.

    patvandenbosche You don't need to turn off that security mode, I meant that you can edit custom.css file directly and add your custom code there instead of updating in template settings.

    a month later
    Write a Reply...
    You need to Login to view replies.