Page 1 of 1

I don't find </body> </html>

Posted: Sun Jan 07, 2024 6:36 pm
by pivari
I don't find </body> </html>
Is it correct?

Re: I don't find </body> </html>

Posted: Sun Jan 07, 2024 8:41 pm
by turboblack
look in the folder with the theme there is a template file, edit it

Re: I don't find </body> </html>

Posted: Mon Feb 12, 2024 9:18 am
by NorfolkGreg
pivari wrote: Sun Jan 07, 2024 6:36 pm I don't find </body> </html>
Is it correct?
A year or two back I installed and ran a site using an earlier version of Wcms. All was fine.

A week ago I installed a new site and found I had a blank page. Looking at the source delivered, it was not just the closing </body> </html> that was missing but everything after the opening <body> tag.

I then checked the requirements for 3.4.3. It needs PHP7.4 or greater. My hosting service runs cPanel and it has an option to control the PHP version which was still set to 7.3. I set that to 7.4 and all was well.

Another possibility... I have also run Wcms under an otherwise "empty" sub-domain of my hosting account. cPanel installs an .htaccess file in these which ensures the PHP setting holds good for the sub-domain. Installing Wcms overwrites this and will cause similar problems. The original .htaccess file contains:

Code: Select all


# php -- BEGIN cPanel-generated handler, do not edit
# This domain inherits the “PHP” package.
# php -- END cPanel-generated handler, do not edit
Make sure these five lines appear at the top of the Wcms .htaccess file before uploading it to your host.

At least, that worked for me.