Can't access users due to missing concrete_avatar.php
Permalink
Here's the error message I get when I try to search or add users:
Warning: require_once(/home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/helpers/concrete_avatar.php) [function.require-once]: failed to open stream: No such file or directory in /home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/core/libraries/loader.php on line 297
Fatal error: require_once() [function.require]: Failed opening required '/home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/helpers/concrete_avatar.php' (include_path='/home/wlbjr/public_html/thefogbow.com/libraries/3rdparty:/home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/core/libraries/loader.php on line 297
What's wrong and how do I fix it?
Warning: require_once(/home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/helpers/concrete_avatar.php) [function.require-once]: failed to open stream: No such file or directory in /home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/core/libraries/loader.php on line 297
Fatal error: require_once() [function.require]: Failed opening required '/home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/helpers/concrete_avatar.php' (include_path='/home/wlbjr/public_html/thefogbow.com/libraries/3rdparty:/home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/wlbjr/public_html/thefogbow.com/updates/concrete5.6.2.1_updater/concrete/core/libraries/loader.php on line 297
What's wrong and how do I fix it?
Have a look at what c5 version the dashboard 'environment info' thinks you are running. Also use ftp to browse to the path of the missing file and see if it is actually there or not. While at the file in ftp, check what its permissions are.
Environment Information:
# concrete5 Version
5.6.2.1
# concrete5 Packages
Database Backup (1.0), Galleria image gallery (2.0), Lerteco Gravatar (1.0.0), Login (1.1.1), Popup Login (1.0.5), Raptorize (1.0.2), Restore Automated Jobs (1.3), Superfish (1.1.5).
# concrete5 Overrides
helpers/concrete, mail/phpmailer.php, mail/form.php, mail/email-traffics-log.php, mail/form.lib.php, mail/form-data-log.php, mail/admin.php, themes/dark_chocolate
# Server Software
Apache
# Server API
apache2handler
# PHP Version
5.3.19
# PHP Extensions
apache2handler, bcmath, calendar, Core, ctype, curl, date, dom, eAccelerator, ereg, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, SQLite, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib.
# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - /usr/local/php/bin
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 2M
eaccelerator.shm_max - 0
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
I did look for the missing file. It's not there, and I'm not convinced there even IS a file named concrete_avatar.php. I found a file named avatar.php, but not concrete_avatar.php. I googled it and got no hits on concrete_avatar.php. The error message refers to line 297 of the file loader.php, but on line 297 it just says:
require_once($f1->file);
I'm afraid I'm a beginner at PHP. I'm aware that $f1 is a variable, but not what it refers to or where it's set.
Thanks for your help with this.
# concrete5 Version
5.6.2.1
# concrete5 Packages
Database Backup (1.0), Galleria image gallery (2.0), Lerteco Gravatar (1.0.0), Login (1.1.1), Popup Login (1.0.5), Raptorize (1.0.2), Restore Automated Jobs (1.3), Superfish (1.1.5).
# concrete5 Overrides
helpers/concrete, mail/phpmailer.php, mail/form.php, mail/email-traffics-log.php, mail/form.lib.php, mail/form-data-log.php, mail/admin.php, themes/dark_chocolate
# Server Software
Apache
# Server API
apache2handler
# PHP Version
5.3.19
# PHP Extensions
apache2handler, bcmath, calendar, Core, ctype, curl, date, dom, eAccelerator, ereg, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, SQLite, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib.
# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - /usr/local/php/bin
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 2M
eaccelerator.shm_max - 0
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
I did look for the missing file. It's not there, and I'm not convinced there even IS a file named concrete_avatar.php. I found a file named avatar.php, but not concrete_avatar.php. I googled it and got no hits on concrete_avatar.php. The error message refers to line 297 of the file loader.php, but on line 297 it just says:
require_once($f1->file);
I'm afraid I'm a beginner at PHP. I'm aware that $f1 is a variable, but not what it refers to or where it's set.
Thanks for your help with this.
Try un-installing the Lerteco Gravatar addon. Gravatar integration is now included in the core, so perhaps that addon is confusing the file names.
I just did a quick search of one of my 5.6.2.1 innstalls and could only find avatar.php - not concrfete_avatar.php (though I did not search throroughly), so it looks like you are probably correct that the file is not supposed to be there.
Edit - looks like the the developer also suggests uninstalling the addon:
http://www.concrete5.org/marketplace/addons/gravatar-add-on/forums/...
I just did a quick search of one of my 5.6.2.1 innstalls and could only find avatar.php - not concrfete_avatar.php (though I did not search throroughly), so it looks like you are probably correct that the file is not supposed to be there.
Edit - looks like the the developer also suggests uninstalling the addon:
http://www.concrete5.org/marketplace/addons/gravatar-add-on/forums/...
I did manage to uninstall that Lerteco Gravatar (though I got a different error message, but it apparently is uninstalled). But that didn't help. I'm still getting the same error message when I "Search Users" or try to "Add Users".
The real problem is, one of my users hasn't logged in for so long she forgot her username and password. Maybe there's some other way of retrieving that information?
The real problem is, one of my users hasn't logged in for so long she forgot her username and password. Maybe there's some other way of retrieving that information?
You could try clearing the override cache.
Tried that already.
I don't know if you have SSH access to the server it is hosted on. But if you do can you go to the site root and run
I have a hunch there is some bit of code doing
Instead of
grep -RFn 'concrete_avatar' *
I have a hunch there is some bit of code doing
Loader::helper('concrete_avatar');
Instead of
Loader::helper('concrete/avatar');
Have you tried downloading another copy of the c5 version you're running and copying concrete_avatar.php from there?
In my case, uninstalling two add-ons helped, and they were Avatar and Lerteco Gravatar. You could use an FTP client like FileZilla and look, if the add-ons are really deleted from /packages. You could also empty the folder /files/tmp via FTP, but please leave the file index.html.