PHP Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING" - cpanel

Can someone assist me with this error please. http error 500.
Somehow, I install a new Drupal on a new subdomain, and I remember changing the time zone and region on cPanel, later both our main official website is down and the same with the new subdomain.
So far, this is the only log that I can pull out from our cPanel.
2022-03-03 19:05:38.594912 [NOTICE] [3084980] [T0] [xxx.xxx.xxx.xxx:xxxxx:HTTP2-5#APVH_mise.gov.ki:443] [STDERR] PHP Fatal error: Uncaught Error: Undefined constant "MB_OVERLOAD_STRING" in /home/misegov/public_html/libraries/vendor/joomla/string/src/phputf8/utf8.php:38
thrown in /home/misegov/public_html/libraries/vendor/joomla/string/src/phputf8/utf8.php on line 38
#5 /home/misegov/public_html/index.php(40): require_once('/home/misegov/p...')
#4 /home/misegov/public_html/includes/framework.php(18): require_once('/home/misegov/p...')
#3 /home/misegov/public_html/libraries/cms.php(36): require('/home/misegov/p...')
#2 /home/misegov/public_html/libraries/vendor/autoload.php(7): ComposerAutoloaderInit205c915b9c7d3e718e7c95793ee67ffe::getLoader()
#1 /home/misegov/public_html/libraries/vendor/composer/autoload_real.php(56): composerRequire205c915b9c7d3e718e7c95793ee67ffe()
#0 /home/misegov/public_html/libraries/vendor/composer/autoload_real.php(66): require()
Any idea what would be the cause of this please?
Thank you and looking forward for possible solutions on this.
Kind regards,

Go to Extensions - Joomla! Update, click Check for Updates and re-install the Joomla core files from the update package.
EDIT: If you cannot access to administrator panel try to reset to PHP 7.x, then update the Joomla to >=3.10.1 after making a backup. Update all extensions beforehand. If necessary Test again with PHP8.

Related

Prestashop Productcomments Module Issue

I am experiencing a problem with the Productcomments module which I am using in a custom module and I cannot figure out how to fix it. The problem is with the star rating in the Productcomments form itself. This form works perfectly in a localhost environment - see images 1 and 2, but not on a live server - see images 3 and 4. On the live server it is showing no stars, just radio buttons, and no delete button for removing the stars.
Form as it looks on WAMP
Code from Chromes Inspect for WAMP
Form as it looks on Live Server
Code from Chromes Inspect for Live Server
Disabling the link to the following 2 js files recreates the problem on the local server which would suggest that the problem lies in the links to these two files on the live server, however I have checked all links to these files and they are correct, as are the permissions for these files.
jquery.rating.pack.js and productcomments.js
Occasionally when I clear cache under Advanced Parameters > Performance I get the following error message:
Fatal error: Uncaught --> Smarty: unable to write file /home/productm/public_html/cache/smarty/compile/10/e2/20/wrt5cbbb0747109d3_91450142
<-- thrown in /home/productm/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46
This problem applies to all 1.6 versions of Prestashop tested.
Any suggestions on how to fix this problem would be appreciated.
Thanks
Kathleen
The error code you've got from clearing cache is linked to permission problems.
Here's probably a duplicate of your issue: How to fix erorr "Fatal error: Uncaught --> Smarty: unable to write file"?
Check that your prestashop files are set to 644 and folders 755 permission. (not just the js files you've mentioned).
Also if you manually moved the module to your live server(ftp), check the ownership of those files.
Edit:
I'll add this to the answer since the permissions didn't fix your problem.
looks like you have a prestashop bug going on with the JS (Synchronous loaded scripts)
here's a patch to fix that, maybe it fixes your original problem.
https://github.com/PrestaShop/PrestaShop/pull/6749/commits/73fd8dbed9f413a70f7d04fc4badd48f00ca501a

Error in Prestashop Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file C:\xampp\htdocs\prestashop/cache/smarty/compile\06\99\53\0699537d98e8ffcfde91527d2e58a586c1a64d88.file.header.tpl.php' in C:\xampp\htdocs\prestashop\tools\smarty\sysplugins\smarty_internal_write_file.php:73 Stack trace: #0 C:\xampp\htdocs\prestashop\tools\smarty\sysplugins\smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('C:\\xampp\\htdocs...', '<?php /* Smarty...', Object(Smarty)) #1 C:\xampp\htdocs\prestashop\tools\smarty\sysplugins\smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #2 C:\xampp\htdocs\prestashop\classes\controller\AdminController.php(1521): Smarty_Internal_TemplateBase->fetch('header.tpl') #3 C:\xampp\htdocs\prestashop\classes\controller\Controller.php(198): AdminControllerCore->display() #4 C:\xampp\htdocs\prestashop\classes\Dispatcher.php(373): ControllerCore->run() #5 C:\xampp\htdocs\prestashop\backoffice\ind in C:\xampp\htdocs\prestashop\tools\smarty\sysplugins\smarty_internal_write_file.php on line 73
Dont know how to fix this Please help me, folder permission set to 777 but still getting this error
if using cpanel and prestashop version 1.6 - 1.7:
go to folder cache -> smarty -> compile
delete all. nb: not included index.php
go to admin panel prestashop 1.6 - 1.7:
1. to advance parameter -> performance
2. clear cache (button in top left)
another tips.
1. backup and generate .htaccess
2. cek out of memory server --> see
3. if using cpanel. go to cpanel -> select PHP version (if using 1.6 version try 5.4, if using 1.7 version try php 7 up)

Prestashop install error - Configure shop information

I'm installing prestashop 1.6.1.10 on ubuntu/xenial64 (vagrant).
I get error on Configure shop information - An error occurred during installation...
In the log I see:
[Tue Feb 14 08:27:12.364749 2017] [:error] [pid 7587] [client 55.55.56.1:49446] PHP Fatal error: Uncaught PrestaShopException: Property Currency->decimals is not valid in /vagrant/prestashop/classes/ObjectModel.php:909
Stack trace:
#0 /vagrant/prestashop/classes/LocalizationPack.php(299): ObjectModelCore->validateFields()
#1 /vagrant/prestashop/classes/LocalizationPack.php(68): LocalizationPackCore->_installCurrencies(Object(SimpleXMLElement), true)
#2 /vagrant/prestashop/install/models/install.php(549): LocalizationPackCore->loadLocalisationPack('<?xml version="...', '', true)
#3 /vagrant/prestashop/install/controllers/http/process.php(207): InstallModelInstall->configureShop(Array)
#4 /vagrant/prestashop/install/controllers/http/process.php(93): InstallControllerHttpProcess->processConfigureShop()
#5 /vagrant/prestashop/install/classes/controllerHttp.php(173): InstallControllerHttpProcess->process()
#6 /vagrant/prestashop/install/index.php(31): InstallControllerHttp::execute()
#7 {main}
thrown in /vagrant/prestashop/classes/ObjectModel.php on line 909, referer: http://dev.imagine-lotus.design/install/index.php?restart=true
What can it be?
I've installed this same code, on the same ubuntu image before and it was OK.
EDIT:
I by-pass this issue by commenting out /classes/ObjectModel.php:909
I will un comment it after install is done
NOTE: after install an error in the front, I had to create a currency in the backend to solve it
I'm still getting errors, I noticed that prestashop was installed with multi-language, which is different than previous installation.
In the install process I didn't choose to install other language than EN,
Maybe chrome passes some variable that presta recognize as my native language and tries to install, and fails
I by-pass this issue by commenting out /classes/ObjectModel.php:909
I will un comment it after install is done
NOTE: after install an error in the front, I had to create a currency in the backend to solve it
I'm still getting errors, I noticed that prestashop was installed with multi-language, which is different than previous installation.
In the install process I didn't choose to install other language than EN, Maybe chrome passes some variable that presta recognize as my native language and tries to install, and fails
so I Use Firefox instead of chrome and solve the problem
I got the same error while installing Prestashop 1.7 on licalhost xampp. But in my case, I did not even get the error log to find out the error, moreover, the installation request was being made via AJAX so error identification was tough, but after more research, I found out the source of the error.
C:\xampp\htdocs\prestashop\classes\localizationPack.php
I used
"try" and "catch"
to identify the error. The error is originating from
C:\xampp\htdocs\prestashop\vendor\icanboogie\cldr\lib\webProvider.php
as a result of network problem. Here, the script needs to send a cURL request to an online location, so if there is no internet connection, it shows that error.
After finding this out, I connected to a connection and tried it again and it worked perfectly.
Try that too.
Hope it works as it did for me.

Installation failure of Impresspages on Two Servers

I have tried installing Impresspages on my local xampp server, and was successful, but have JS errors and am unable to edit any content on front end. I get the below error in my inspector.
Uncaught TypeError: Cannot read property 'mouse' of undefined localhost/Ip/Internal/Content/assets/management.min.js?1:71
Does anyone know what is causing this?
I then tried to install it on my Cloudserver which runs WHM/Cpanel. I was not able to install at all.. I get the below error:
[03-Jul-2014 19:25:50 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
What is causing this? How can I fix?
Thanks in advance!!
Michael
http://www.digitalworkhorse.com/
First issue shouldn't make any problems with content management. Refresh page, clear browser cache. Content management should work.
The second has nothing to do with ImpressPages. It's your servers problem with PHP installation.

Yii:: WARNING unable to include files on some pages; please explain

I have been recently running into this issue once I uploaded my Application to an online server,
I keep receiving Warnings such as:
YiiBase::include(CJuiInputWidget.php) [<a href='yiibase.include'>yiibase.include</a>]: failed to open stream: No such file or directory
--OR--
YiiBase::include(YiiMailer.php) [<a href='yiibase.include'>yiibase.include</a>]: failed to open stream: No such file or directory
--OR--
YiiBase::include(CGridColumn.php) [<a href='yiibase.include'>yiibase.include</a>]: failed to open stream: No such file or directory
The real issue here is that all of these pages are working perfectly on my localhost or on other pages on
the online server.
When I hid the warnings, some pages are displayed normally while others are not, I know the error is still there.
My Localhost specs are:
XAMPP, Windows 7 OS, PHP Version 5.3.8
Online Server Specs:
XAMPP, Windows 7 OS, PHP Version 5.2.6
I am currently solving the issue by importing the required widgets in main.
What is also crazy for example is that CGridColumn and CJuiInputwidget are working perfectly on other pages ,
I have made sure that case sensitivity is considered.
Can anyone point me in the right direction or give me any pointers or thoughts on what is happening, any tips or advices are amazingly appreciated!
Here is also a stack trace of whats going on:
**Stack trace:
#0 D:\...\yii\framework\YiiBase.php(395): spl_autoload_call()
#1 D:\...\yii\framework\YiiBase.php(395): autoload()
#2 D:\...\yii\framework\YiiBase.php(296): autoload()
#3 D:\...\yii\framework\YiiBase.php(196): import()
#4 D:\...\yii\framework\zii\widgets\grid\CGridView.php(363):
createComponent()**
as you can see the major issue has to do with the autoload
Thank you, for taking the time to read this,
Could be the common problem of developing on windows, hosting on Linux. Windows doesn't care about the case of the filename, Linux does. I'd have a check through any widgets you've written or are including and any custom package definitions you have. Just ensure the case is correct.
Well I added this to the Index.php in order to hide warnings...very dirty in my POV
ini_set('error_reporting', E_NOTICE);
and the problem dissolved, still I can't comprehend what was happening!