Quantcast
Viewing all articles
Browse latest Browse all 38

Can’t find file: error on Pantheon.io hosting

Replies: 1

I was having a failure with ‘file_exists()’ in ‘readFileContents()’ in ‘404-solution/includes/Functions.php’.

Took awhile to eliminate it down to the fact that Pantheon.io does not seem to like to push files with extension ‘.sql’ upstream. The plugin was working in the Dev environment, but error-ing out in the Test and Live since the ‘.sql’ files do not exist in those.

My temporary patch is to rename the files to ‘.txt’ extension. I also duplicated the whole directory to keep the original in place.

I hade to replace ‘sql’ with ‘txt’ in the places below. Note: Pantheon does not have an issue with the ‘sql’ folder name. So if the developer decides to change extension to ‘.txt’ or other safe extension, that can remain the same.

Hope this helps someone / and the developer may want to use a free sandbox account to verify failures / fixes.

duplicated original files/folder with ‘txt’ folder and ‘.txt’ extensions
404-solution/includes/txt/***.txt

replaced sql with txt in path and path file extensions
404-solution/includes/DataAccess.php
404-solution/includes/DatabaseUpgradesEtc.php
404-solution/includes/PluginLogic.php
404-solution/includes/Functions.php


Viewing all articles
Browse latest Browse all 38

Trending Articles