• Resolved dbrossa

    (@dbrossa)


    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 1 replies (of 1 total)
  • Plugin Author Aaron

    (@aaron13100)

    Hey. Thanks for the tip.

    When you say “Pantheon.io does not seem to like to push files with extension ‘.sql’ upstream,” do you mean uploading the files didn’t work?

    If so can you upload a zip file and unzip it, or rename the .txt files to .sql after uploading them?

    thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t find file: error on Pantheon.io hosting’ is closed to new replies.