Jump to content

Internal Server Error - InputfieldText not found


PensiveOwl
 Share

Recommended Posts

Hello,

Today I was playing around with one of my old websites. Specifically with http and https redirection through cPanel as I parked and redirected a new domain on top of the current one.
I  was able to see the home page and the website fully working.  I noticed that my current domain wasn't redirected properly as I could see the website as either http or https on all pages. I know I could have added a code to htaccess  file to achieve that, I just wasn't sure how was the Processwire initially configured and set up. Last time I did any updates was more than 2 years ago.

So I decided to check the processwire admin setup. Tried to log into my admin panel (using my custom admin login url/page) but nothing happened. Blank page. I simply could not access it. 
Then all of sudden I received that scary "Internal Server Error" :

" Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Error has been logged. Administrator has been notified.

Now my first instinct was to check the .htaccess file. But no matter what I did (modifying, restoring from backup, deleting) nothing happened.

Then I went to site/config.php file and updated the $config->debug = true;  (instead of false) to see the error messages.
Here we go: 
"
Fatal error: Class 'ProcessWire\InputfieldText' not found in /home/edwbst/public_html/wire/modules/Inputfield/InputfieldPassword/InputfieldPassword.module on line 17
Warning: class_parents(): Class InputfieldPassword does not exist and could not be loaded in /home/edwbst/public_html/wire/core/Functions.php on line 804
Warning: in_array() expects parameter 2 to be array, boolean given in /home/edwbst/public_html/wire/core/Functions.php on line 805

"
My web host is using the PHP Version 7.0.26, MariaDB 10.1.28 , and I believe the Processwire version used is from September 2015. 

I'd appreciate any insights on this error.
Thank you!
Ian

Link to comment
Share on other sites

The mixture of namespaced and namespaceless class names looks a bit worrying. Might be an incomplete update (through FTP?) since InputfieldPassword seems to be namespaced but Functions.php not. I'd download everything to a local machine, get things running there, update that copy to a halfway recent PW3 version (>= 3.0.33) and see if that helps.

  • Like 1
Link to comment
Share on other sites

You could try:

Uncommenting this line in your .htaccess: https://github.com/processwire/processwire/blob/master/htaccess.txt#L92

Delete site/assets/cache folder contents

Check site/assets/logs for additional hints what went wrong

Check $config->httpHosts in site/config.php

As a last resort, find out which version you had installed, and overwrite the entire wire folder with the same version. (use $config->version somewhere in your templates to find out which one you have installed). Backup the old wire folder (rename it), just in case. e.g. if you had v. 2.6.1, grab the wire folder from here https://github.com/ryancramerdesign/ProcessWire/tree/2.6.1

And finally... you could download the entire site, clone the DB, and try to make it run locally. But this shouldn't really be necessary.

  • Like 1
Link to comment
Share on other sites

Thank you for getting back to me so promptly!
I'll give it a try then.

One quick question, what values should be in the site/config.php,  $config->httpHosts  line? What I have now is the domain name with and without www.  I don't think any changes are required there.

No additional errors found in the site/assets/logs errors.txt file.
It seems that the Processwire version used is 2.6.18.

Thanks for now..

Link to comment
Share on other sites

7 hours ago, PensiveOwl said:

It seems that the Processwire version used is 2.6.18.

In that case, you almost definitely have a mixture of versions in your wire directory. It would probably be easiest to rename the wire directory on the server, re-download 2.6.18 from github at https://github.com/ryancramerdesign/ProcessWire/archive/8964c2d0b5f7d3445adcc5d91467f6117ef0d4fb.zip and upload just the wire directory (make sure to backup the db, though).

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
On 1/21/2018 at 5:05 PM, PensiveOwl said:

Thank you for getting back to me so promptly!
I'll give it a try then.

One quick question, what values should be in the site/config.php,  $config->httpHosts  line? What I have now is the domain name with and without www.  I don't think any changes are required there.

No additional errors found in the site/assets/logs errors.txt file.
It seems that the Processwire version used is 2.6.18.

Thanks for now..

you may refer this : https://processwire.com/docs/start/variables/config/#httphosts

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...