I’ve been working on improving my website which is using the cms for a blog. The site seems to be working fine, but I’ve had it happen a three or four times now, but not every time. When I publish updates, it breaks the php and the blog pages don’t work.
I’ve tried then republishing and that didn’t fix it. So I went to my cPanel on my Chillidog hosted site and even though it said PHP was using version 8.4, I reset it to do so and this fixes it.
Any ideas of what might cause this? Has anyone else experienced this?
Might not apply to you but I had a problem with PhP and Chillidog. I thought I was on Php 8.4 but some of my domains were on PhP 7.1. SO if you have updated to PhP 8.4 and dont have a problem now maybe like me you were not on PhP 8.2 or above?
Going out on a limb here, because neither RapidWeaver Classic nor Elements has the ability to alter the PHP version on your web hosting account, but if you have included a .htaccess file in your file list in RapidWeaver, and you have a PHP directive in that .htaccess file that sets it to a different version than your account’s default, I think that would be the only possible way that RapidWeaver would be able to make that kind of change.
So, do you have an .htaccess file in your RapidWeaver project file, and if yes does it contain any PHP directive that sets the site’s PHP version?
Ok nothing in that .htaccess file is setting the PHP version for your site, so then there’s nothing in RapidWeaver Elements (or Classic), that would break your PHP version after publishing.
If you happen to run into this again, add a page called phpinfo.php in your hosting account and add the below code to it:
<?php
phpinfo();
?>
Then visit your site (https://example.com/phpinfo.php) and see what PHP version it’s reporting. If it’s changing from PHP 8.4 to something else, that’s something you’d want to investigate with your web host.
This has gone from bad to worse. I decided to republish the site, so I deleted all the files through cPanel and made sure the trash was empty. I then did a republish all, but it keeps failing at different files about half way through.. It’s trying to upload >4800 files. Below is the error that I got back. I had the connection speed at 6 - Lightening which is what I always use. So I tried it on 4 - Fast and it still failed.
Unfortunately, SFTP keeps failing even sooner on the slowest speed. I added the :23261 port at the end of the hostname and it pass if I hit the Test button, but it is failing when I try to publish.
So for now I switched it back to FTP until I can contact Chillidog.
Also, I added the phpinfo.php and sure enough, after I do an change and publish, it is reverting back to 7.4.33, so I have to contact Chillidog and see why it’s reverting back.
Evidently, when you specify the PHP version on the server, it writes code to the .htaccess file. I was uploading an .htaccess file when I published which didn’t have it.
If on chillidog try what I have put as this is what @barchard told me to use as I was having problems publishing and spending time with @differentdan on a 1:1. Give it a go it can’t cause harm. TIA
Yeah this is what I was hinting at in my initial reply, whether the .htaccess file was either overwriting, or getting overwritten, somehow.
So in this case seems you had an .htaccess file included in your Elements page list that was overwriting the one on the server.
Just a side note, I’m not a fan of including an .htaccess file in RapidWeaver’s page list. That should be explicitly managed on the server because of things just like this.
Regarding the Server/Host setting, try using your server’s IP address followed by the port. For example:
123.45.678.910:23261
That’s usually less problematic. You can see your server’s IP address in your CDG cPanel >> Right hand side.
If you continue to have troubles with it best to ask the guys at Chillidog to take a look at the server logs to see what’s up.
I tried with the ip address of the server. The Test but says it makes a connection, but it fails right away when trying to publish a minor change to one page.
I’ve got a ticket in with Chillidog so hopefully they will be able to get to the bottom of the SFTP issue.
Ok Greg and Brian have been tagged so they will get back to get to you, with time difference in UK I normally have communications around 1800. Good luck!