Link to home
Start Free TrialLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

asked on

WordPress No input file specified.

Hi Experts

My client is with GoDaddy, and has asked me to re-create her WordPress website. I usually do this on my localhost first, then transfer live. When I did, the Home page works as expected, but all other give

No input file specified.

The steps I've taken so far...

1- Deleted client's old site (with GoDaddy's interface)
2- Re-installed WP (with GoDaddy's interface), which asked me for new UID/PWD
3- FTP Upload my Parent / Child theme, and activated
4- Installed plugiins: Polylang and Contact form 7
5- Locally, exported WP DB  as .sql file.
6- Within the .sql file I search and replace http://localhost/domain.com with https://www.domain.com
7- Imported sql file to GoDaddy.

Note: step 2 created table prefixes as wp###_, where step2 is just the default wp_, so just in case I left both sets of tables.  This also over-wrote the UID/PWD with my local ones, which is understandable and ok.

8- Adjusted wp-config.php on GoDaddy to use the wp_ prefix.
9- Did minor tweaks to the theme customizations and widgets. This got the home page working as expacted, but not the rest.

I Googled the error and it just gives 2 solutions: update WP (it is the latest version); and update .htaccess my live .htaccess looks like this:

# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^atsinlaw\.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security "max-age=300"
</IfModule>
# END GD-SSL

# BEGIN WordPress

# END WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php?/$l [L]
</IfModule>
# END WordPress

Open in new window


I am also having trouble locating the cPanel under GoDaddy, maybe the client does not have it, in order to restart after updating . htaccess, but maybe that even is not the solution.

Any help will be appreciated.
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

If you can get into the dashboard, go into the theme options page, make a minor tweak you know you can undo, and save the theme options, then undo the tweak and save again. See if that helps.

(If you've already saved a change to the theme options on the copy of the site, then you've essentially already tried it.)
There can be many reasons for getting this error. They normally relate to hosting configuration files, you'll have no access to via GoDaddy.

Suggestion.

Remove all WordPress .php files + get your bare directory serving correctly as HTTPS first.

Also, use a normal backup plugin like Duplicator or BackupBuddy, where you restore your site through an installer file, so you'll have none of the manual steps you list above.
Avatar of APD Toronto

ASKER

Yes, I already made theme changes successfully, but the error persist.
What happens if you disable all the plugins? You can do this from your hosting file manager tool by just moving all the plugin folders to a temporary folder, then open the plugins page in the WordPress dashboard.

This would help track down the cause of the problem.

When you move the plugins back after you try this, you'll need to reactivate them.
David's latest suggestion is a good one. Once you get a basic installation of WordPress running, I suggest you make a copy of the .htaccess file before you import your site, then if the same error does occur you can compare files in case it's something in there that's causing the error.

I see there are several suggestions here too: https://stackoverflow.com/questions/14555996/no-input-file-specified

One easy one to try would be to add:
Options +ExecCGI

addhandler x-httpd-php5-cgi .php

Open in new window

to the top of your .htaccess file, however if you want PHP v7 for your site then it might not be a good solution, as it looks like it forces the site to run in v5.
ASKER CERTIFIED SOLUTION
Avatar of APD Toronto
APD Toronto
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial