Support question, what is causing this error message
When I go to server audit on the dashboard at the bottom I am seeing this error message.
Fatal error: Uncaught TypeError: str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string in /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/inc/classes/BxDolLanguages.php:208 Stack trace: #0 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/inc/classes/BxDolLanguages.php(208): str_replace('{1}', Array, 'To apply this o...') #1 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/inc/classes/BxDolLanguages.php(396): BxDolLanguages->_t('_sys_audit_msg_...', 'expires_module', Array) #2 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/studio/classes/BxDolStudioToolsAudit.php(424): _t('_sys_audit_msg_...', 'expires_module', Array) #3 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/studio/classes/BxDolStudioToolsAudit.php(375): BxDolStudioToolsAudit->optimizationWebServer() #4 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/studio/classes/BxDolStudioToolsAudit.php(132): BxDolStudioToolsAudit->optimization() #5 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/studio/classes/BxDolStudioDashboard.php(139): BxDolStudioToolsAudit->generate() #6 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/studio/template/scripts/BxBaseStudioDashboard.php(15): BxDolStudioDashboard->__construct() #7 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/studio/template/scripts_templ/BxTemplStudioDashboard.php(16): BxBaseStudioDashboard->__construct() #8 /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/studio/dashboard.php(18): BxTemplStudioDashboard->__construct() #9 {main} thrown in /home/REDACTED/domains/REDACTED.REDACTED.com/public_html/inc/classes/BxDolLanguages.php on line 208
-
-
·
LeonidS
- ·
Hello @Will Monte !
It is necessary to track in what part of code the _t function is called. Because for now, it looks like the attempt to use with the array argument in the replacement deal, instead of the string like it has been made.
-
·
LeonidS
-
- · Will Monte
- ·
I attempted to move to UNA 13; it failed and my hosting only had 12.0.1 backup. Hosting restored to 12.0.1 and now when I attempt to upgrade to 12.1.0 it is saying too many files have changed. My sys-admin wants to try forcing an upgrade. When turning on force update it is still saying too many files have changed. Sys-admin wants to bypass that check; the site is not correct anyway. What script is this check in?
-
Sorry, but what do you mean under "script is check"? Anyway the upgrade of life site to the Alpha version is too risky process.
-
@LeonidS i will contact you 2moro, i'm very tired mate. :)
-
No, I want to upgrade the site from the current 12.0.1 to 12.1.0. However, I am being blocked from upgrading due to the check for changed files. Even when I go into the settings and tell it to update with changed files it reports that it can't because too many files have been changed. My sys-admin wants to attempt to upgrade the site and fix the issue. She wants to remove the update check for changed files completely, run the update so that the database gets updated, and then use the download for 12.1.0 to make sure all of the files are correct to see if this will repair the site. She is asking for the location in the files for the changed files code so that she can remove it.
-
Then you need to backup your site and enable the "Force auto-update, even if some files were modified" option. Then after finishing of update till 12.1 disable it again.
-
Yes; I tired that. Even with "Force auto-update, even if some files were modified" turned on, it tells me that too many files have been modified (which is not true, no files have been modified, must be part of the UNA 13). Therefore, my sys-admin wants to disable this check completely in the code. She does have php skills. I was hoping you could save me some time and instruct which file contains this code.