Captcha broke CSS and can't log into admin

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Captcha broke CSS and can't log into admin

Post by webguru »

I am unable to log into the admin site. From an earlier post in this forum, I have copied and pasted my site settings below.

Yesterday, or within the last few days, the site was up. But today, all the CSS was gone and as I mentioned, I am unable to log into the admin at all.

After looking at the logs, I got the following:

[Wed Apr 27 09:50:44 2016] [error] [client 10.153.119.252] [host xxxxxx.org] Backend fatal error: PHP Fatal error: Call to a member function getCaptcha() on a non-object in /var/www/vhtdocs/userweb64006/html/modules/Captcha/lib/classes/module/class.captcha.php on line 694\n

I renamed the Captcha folder to Captcha.old and at least the site is looking properly, but obviously the forms do not have captcha.

I am still though, not able to log into the admin.

So my question is, can anyone assist based on the logs as to how to fix it and log back in to do an update to the Captcha module, or somehow fix it?

Thanks!

Paul



Cms Version: 2.1.1

Installed Modules:

AdminSearch: 1.0
CMSContentManager: 1.1
DesignManager: 1.1.1
FileManager: 1.5.2
MicroTiny: 2.0.2
ModuleManager: 2.0.1
Navigator: 1.0.2
News: 2.50.3
Search: 1.50.2
AceEditor2: 1.05
FormBuilder: 0.8.1.3
CMSMailer: 5.2.14
Captcha: 0.5.2
Showtime: 3.4
Gallery: 2.1
SimpleSiteMgr: 3.0
SimpleSiteInfo: 3.0
CGExtensions: 1.51.1
SiteMapMadeSimple: 1.2.8


Config Information:

php_memory_limit:
max_upload_size: 25000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: America/Los_Angeles
permissive_smarty: false


Php Information:

phpversion: 5.4.45
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 96M
max_execution_time: 60
register_globals: Off (False)
output_buffering: 4096
disable_functions: show_source, symlink
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 25M
upload_max_filesize: 25M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: On (True)
smarty_compilecheck: Off (False)
smarty_cache_udt: On (True)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache
Server Api: litespeed
Server Os: Linux 2.6.32-673.8.1.lve1.4.3.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.26
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /var/www/vhtdocs/userweb64006/html/tmp (0755)
tmp_cache: /var/www/vhtdocs/userweb64006/html/tmp/cache (0755)
templates_c: /var/www/vhtdocs/userweb64006/html/tmp/templates_c (0755)
modules: /var/www/vhtdocs/userweb64006/html/modules (0755)
uploads: /var/www/vhtdocs/userweb64006/html/uploads (0755)
File Creation Mask (umask): /var/www/vhtdocs/userweb64006/html/tmp/cache (0755)
config_file: 0444
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Captcha broke CSS and can't log into admin

Post by Dr.CSS »

Please explain exactly what happens when you try to log in to admin...

Did you go into the server side file manager and clear the tmp/cache and tmp/templates_c folders..?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: Captcha broke CSS and can't log into admin

Post by Jo Morg »

webguru wrote:Yesterday, or within the last few days, the site was up. But today, all the CSS was gone and as I mentioned, I am unable to log into the admin at all.
Unless your host has change server settings or software, that can't happen... I suspect that the info you posted is not up to date... particularly your current PHP version. Please check PHP version/info, and if your host did some changes to the server. Additionally, please post the last few errors/notices/warnings of the log, not just the last nor just the fatal error...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Captcha broke CSS and can't log into admin

Post by webguru »

DR.CSS

Thanks, clearing the cache allowed me to get into the admin.

Now for the Captcha problem, I am running this version:

Author: Jo Morg <jomorg.morg@gmail.com>
Version: 0.5.2

Any ideas as to why the captcha might not allow my CSS to show?

I look forward to any direction.



Here is the current site info:



----------------------------------------------

Cms Version: 2.1.1

Installed Modules:

AdminSearch: 1.0
CMSContentManager: 1.1
DesignManager: 1.1.1
FileManager: 1.5.2
MicroTiny: 2.0.2
ModuleManager: 2.0.1
Navigator: 1.0.2
News: 2.50.3
Search: 1.50.2
AceEditor2: 1.05
FormBuilder: 0.8.1.3
CMSMailer: 5.2.14
Captcha: 0.5.2
Showtime: 3.4
Gallery: 2.1
SimpleSiteMgr: 3.0
SimpleSiteInfo: 3.0
CGExtensions: 1.51.1
SiteMapMadeSimple: 1.2.8


Config Information:

php_memory_limit:
max_upload_size: 25000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: America/Los_Angeles
permissive_smarty: false


Php Information:

phpversion: 5.6.19
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 96M
max_execution_time: 60
register_globals: Off (False)
output_buffering: 4096
disable_functions: show_source, symlink
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 25M
upload_max_filesize: 25M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: On (True)
smarty_compilecheck: Off (False)
smarty_cache_udt: On (True)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache
Server Api: litespeed
Server Os: Linux 2.6.32-673.8.1.lve1.4.3.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.26
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /var/www/vhtdocs/userweb64006/html/tmp (0755)
tmp_cache: /var/www/vhtdocs/userweb64006/html/tmp/cache (0755)
templates_c: /var/www/vhtdocs/userweb64006/html/tmp/templates_c (0755)
modules: /var/www/vhtdocs/userweb64006/html/modules (0755)
uploads: /var/www/vhtdocs/userweb64006/html/uploads (0755)
File Creation Mask (umask): /var/www/vhtdocs/userweb64006/html/tmp/cache (0755)
config_file: 0444

----------------------------------------------
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: Captcha broke CSS and can't log into admin

Post by Jo Morg »

webguru wrote:Any ideas as to why the captcha might not allow my CSS to show?
Any PHP fatal error would do that. The HTML body would be half rendered but the head section would not be rendered at all (because of the way CMSMS renders templates).
Now, as I suspected, the PHP version has changed. Although it shouldn't break like that (I'm just having a quick look at the code in a server with PHP 7) , I can see places where the code needs to be updated to PHP more recent standards. I would try to get in touch with the host and revert the PHP version to whatever it was before temporarily, at least until a new version of the module is released. I don't have a time frame for the release yet, but it should be soon(ish) depending on whatever time I can devote to it.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Captcha broke CSS and can't log into admin

Post by webguru »

They only changed the php version this morning when I had the problem, so the captcha issue happened before that with the older version of PHP.

I will put it back and see what happens and update this post.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Captcha broke CSS and can't log into admin

Post by webguru »

It is working now.

Clearing the cache allowed me back in to the admin.

The hosting company restored the files for the site (not the database) from a time last week when it was working and the Captcha is now working.

Still don't understand what might have happened, but all seems to be fine now.

Any other insights for the future would be appreciated.

Paul
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Captcha broke CSS and can't log into admin

Post by webguru »

This happened again today. Clearing the cache as instructed, fixed it.

Jo Morg, you said to post the logs. Do you want me to attach a file or copy/paste the entire first page?

Is there an extension of some kind that clears the cache folders at given intervals?

Also, I am getting this error in the logs. Forms are not submitting:
FormBuilder submit error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting

Thanks!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: Captcha broke CSS and can't log into admin

Post by Jo Morg »

webguru wrote:Jo Morg, you said to post the logs. Do you want me to attach a file or copy/paste the entire first page?
Yes please, you can attach a file with the 1st page, or the errors closest to the PHP Fatal error: Call to a member function getCaptcha() on a non-object line.
I'll try to take a look at it asap.
webguru wrote:Also, I am getting this error in the logs. Forms are not submitting:
FormBuilder submit error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
That should be an entirely different issue, but it can also indicate that there is something not well configured either in your CMSMS email settings, on the Form submission settings on FormBuilder, or on the server itself.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Captcha broke CSS and can't log into admin

Post by webguru »

Hi Jo,

I checked the email settings and tested sending an email, successfully.

When I retry one of the forms, I still get this error on the live site:
Sorry! There was an error handling your form submission.

This is the admin log that I see.
FormBuilder submit error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting


Current PHP Version (phpversion) Success 5.6.19

Any thoughts?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: Captcha broke CSS and can't log into admin

Post by Jo Morg »

webguru wrote:I checked the email settings and tested sending an email, successfully.

When I retry one of the forms, I still get this error on the live site:
Sorry! There was an error handling your form submission.

This is the admin log that I see.
FormBuilder submit error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
Jo Morg wrote:That should be an entirely different issue, but it can also indicate that there is something not well configured either in your CMSMS email settings, on the Form submission settings on FormBuilder, or on the server itself.
Most likely one or more of the used dispositions may be wrongly configured, particularly if the host requires the email address of the sender to be an existing email on that particular server. There are already a huge number of fixes\workarounds for this issue that you can try, just do a search on the forum to find them.
If none of them work, I'll need far more details on what did you try (step by step), settings and configuration of the affected form, etc...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Captcha broke CSS and can't log into admin

Post by webguru »

The forms use to work fine until the tmp folders overloaded as I mentioned earlier in the post. When I emptied them, the site came back but the forms didn't work.

So my email settings are all correct according to the hosting company.

Not sure why this has happened a few times now. I will post my steps.
Locked

Return to “Modules/Add-Ons”