QUESTION:

Warning: failed to open stream..



ANSWER:

Warning: main(/publish.php): failed to open stream: No such file or directory in /home/somewhere/textpattern/index.php on line 12

These and similar errors are usually caused by:

  • A missing or empty config.php file
  • Missing or empty subdirectories
  • Missing .php files
  • An incorrect ‘txpath’ setting in config.php

Make sure you’ve uploaded the complete contents of the Textpattern .zip/.tar.gz file to the correct location, and that your config.php settings are correct.