Jump to content
thirty bees forum

Recommended Posts

Posted (edited)

Can anyone decrypt this 500 error report file for me?

Something happened on our server last night, i think during a cpanel update but not sure. The issue is wider than thirtybees (also affects wordpress) but I can't get into our back office to do anything so I was hoping the error report might tell me something

exception_202161095458.txt

Edited by haylau
Posted
1 minute ago, veganline said:

Doesn't decrypt in my copy of TB (unless I am doing something wrong); I get no report after pressing "decrypt"

Thanks for trying. I got that also when i tried the ThirtyBees demo but hoped that it was disabled on there

Stumped now 😞

Posted

Managed to access files and switched on debug.

Get this on main page 

ThirtyBeesException
RecursiveDirectoryIterator::__construct(/home/uboltsrus/public_html/cache/smarty/cache/stfeaturedcategories/1/1/1/3/17_/): failed to open dir: Permission denied
in file vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php at line 65
Source file: vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php
46:                }
47:            }
48:        }
49:        if (isset($resource_name)) {
50:            $_save_stat = $smarty->caching;
51:            $smarty->caching = Smarty::CACHING_LIFETIME_CURRENT;
52:            $tpl = new $smarty->template_class($resource_name, $smarty);
53:            $smarty->caching = $_save_stat;
54:            // remove from template cache
55:            $tpl->source; // have the template registered before unset()
56:            if ($tpl->source->exists) {
57:                $_resourcename_parts = basename(str_replace('^', '/', $tpl->cached->filepath));
58:            } else {
59:                return 0;
60:            }
61:        }
62:        $_count = 0;
63:        $_time = time();
64:        if (file_exists($_dir)) {
65:            $_cacheDirs = new RecursiveDirectoryIterator($_dir);
66:            $_cache = new RecursiveIteratorIterator($_cacheDirs, RecursiveIteratorIterator::CHILD_FIRST);
67:            foreach ($_cache as $_file) {
68:                if (substr(basename($_file->getPathname()), 0, 1) === '.') {
69:                    continue;
70:                }
71:                $_filepath = (string)$_file;
72:                // directory ?
73:                if ($_file->isDir()) {
74:                    if (!$_cache->isDot()) {
75:                        // delete folder if empty
Stack trace
1. vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php:65 source RecursiveDirectoryIterator->__construct(arguments)
2. vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php:186 source Smarty_Internal_Runtime_CacheResourceFile->clear(arguments)
3. vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcache.php:48 source Smarty_Internal_CacheResource_File->clear(arguments)
4. vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php:133 source Smarty_Internal_Method_ClearCache->clearCache(arguments)
5. vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php:290 source Smarty_Internal_Extension_Handler->_callExternalMethod(arguments)
6. classes/SmartyCustom.php:274 source Smarty_Internal_Data->__call(arguments)
7. classes/SmartyCustom.php:227 source SmartyCustomCore->check_template_invalidation(arguments)
8. classes/module/Module.php:3265 source SmartyCustomCore->createTemplate(arguments)
9. classes/module/Module.php:3338 source ModuleCore->getCurrentSubTemplate(arguments)
10. modules/stfeaturedcategories/stfeaturedcategories.php:1510 source ModuleCore->isCached(arguments)
11. classes/Hook.php:769 source StFeaturedCategories->hookDisplayHome(arguments)
12. classes/Hook.php:471 source HookCore::coreCallHook(arguments)
13. classes/Hook.php:288 source HookCore::execWithoutCache(arguments)
14. controllers/front/IndexController.php:58 source HookCore::exec(arguments)
15. override/controllers/front/IndexController.php:15 source IndexControllerCore->initContent()
16. classes/controller/Controller.php:208 source IndexController->initContent()
17. classes/controller/FrontController.php:255 source ControllerCore->run()
18. classes/Dispatcher.php:852 source FrontControllerCore->run()
19. ./index.php:33 source DispatcherCore->dispatch()

And this on admin

ThirtyBeesException
unable to create directory /home/uboltsrus/public_html/cache/smarty/compile/5c/4e/37
in file vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php at line 51
Source file: vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php
32:        $_file_perms = property_exists($smarty, '_file_perms') ? $smarty->_file_perms : 0644;
33:        $_dir_perms =
34:            property_exists($smarty, '_dir_perms') ? (isset($smarty->_dir_perms) ? $smarty->_dir_perms : 0777) : 0771;
35:        if ($_file_perms !== null) {
36:            $old_umask = umask(0);
37:        }
38:        $_dirpath = dirname($_filepath);
39:        // if subdirs, create dir structure
40:        if ($_dirpath !== '.') {
41:            $i = 0;
42:            // loop if concurrency problem occurs
43:            // see https://bugs.php.net/bug.php?id=35326
44:            while (!is_dir($_dirpath)) {
45:                if (@mkdir($_dirpath, $_dir_perms, true)) {
46:                    break;
47:                }
48:                clearstatcache();
49:                if (++$i === 3) {
50:                    error_reporting($_error_reporting);
51:                    throw new SmartyException("unable to create directory {$_dirpath}");
52:                }
53:                sleep(1);
54:            }
55:        }
56:        // write to tmp file, then move to overt file lock race condition
57:        $_tmp_file = $_dirpath . DIRECTORY_SEPARATOR . str_replace(array('.', ','), '_', uniqid('wrt', true));
58:        if (!file_put_contents($_tmp_file, $_contents)) {
59:            error_reporting($_error_reporting);
60:            throw new SmartyException("unable to write file {$_tmp_file}");
61:        }
Stack trace
1. vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:209 source Smarty_Internal_Runtime_WriteFile->writeFile(arguments)
2. vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:184 source Smarty_Template_Compiled->write(arguments)
3. vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:141 source Smarty_Template_Compiled->compileTemplateSource(arguments)
4. vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:105 source Smarty_Template_Compiled->process(arguments)
5. vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216 source Smarty_Template_Compiled->render(arguments)
6. vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:232 source Smarty_Internal_Template->render(arguments)
7. vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116 source Smarty_Internal_TemplateBase->_execute(arguments)
8. classes/SmartyCustom.php:540 source Smarty_Internal_TemplateBase->fetch(arguments)
9. classes/SmartyCustom.php:515 source Smarty_Custom_Template->fetchWithRetries(arguments)
10. classes/controller/AdminController.php:2098 source Smarty_Custom_Template->fetch()
11. classes/controller/Controller.php:226 source AdminControllerCore->display()
12. classes/Dispatcher.php:852 source ControllerCore->run()
13. nimda/index.php:63 source DispatcherCore->dispatch()

Looking for clues as to what may be wrong on the server so it is not about the thirtybees specifically

Posted

Solved - I think 

When I checked the server I noticed that PHP-FHM was disabled. Not sure if i had that enabled or disabled previously. So I think an update over night changed something 

Anyway, enabled it and all seems to be working - fingers crossed PHP-FHM does not actually introduce any other errors

  • Like 1
Posted
1 hour ago, veganline said:

Doesn't decrypt in my copy of TB

Such encrypted exceptions decrypt only in the shop where they were made. That's the entire point of encryption 🙂

Exceptions sometimes contain sensitive data, handing this out to generic shop visitors might not be what a shop owner wants.

  • Like 2

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
×
×
  • Create New...