Troubleshooting
Before you hit the forums, check out our list of some common issues and their solutions.
Installation Problems on GoDaddy
If you are trying to install PyroCMS on GoDaddy servers, you may need to make some adjustments:
First add an .htaccess to the install directory:
RewriteEngine on
RewriteBase /installer/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Then, in installer/config/config.php, change the $config['index_page']:
$config['index_page'] = "index.php?";
In the same file, change $config['uri_protocol']:
$config['uri_protocol'] = "QUERY_STRING";
Emails Are Not Being Sent
If you are trying to send email via PyroCMS (via the contact plugin, or any other method) and no emails are being sent, the first step is to check the settings of whatever mail method you are using. You can find those settings in Settings, undert the Email tab.
If you are sure your settings are correct, there might be an isse with line endings in your email. The majority of server mail software is fine with using PHP_EOL
for line endings, but some software (like qmail) might need you to set your line endings to \r\n
.
To do this, go into system/cms/libraries/MY_Email.php and change:
$config['crlf'] = PHP_EOL;
$config['newline'] = PHP_EOL;
to:
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";