Hi,
My current website is on version 1.5.5.1 and I am trying to migrate to 2.3.0.2 so I recently setup a dev sub-folder and installed OC there.
When I go to login to the admin area, I get the following error:
Warning: htmlspecialchars(): charset `UTF-8;' not supported, assuming utf-8 in /public_html/dev/system/library/cart/user.php on line 39Warning: Cannot modify header information - headers already sent by (output started at /public_html/dev/admin/controller/startup/error.php:34) in /public_html/dev/system/library/response.php on line 12.
I have not installed any extensions or theme.
Note: When I created the DB, it defaulted to the swedish default but I have since updated it to utf8_general_ci
As suggested in another forum post, I amended the php.ini and admin/php.ini files. I removed the semicolon from the end of each line but it did not resolve the issue.
If anyone has any suggestions as to how I can resolve this, it would be much appreciated.
Thanks,
Philip
My current website is on version 1.5.5.1 and I am trying to migrate to 2.3.0.2 so I recently setup a dev sub-folder and installed OC there.
When I go to login to the admin area, I get the following error:
Warning: htmlspecialchars(): charset `UTF-8;' not supported, assuming utf-8 in /public_html/dev/system/library/cart/user.php on line 39Warning: Cannot modify header information - headers already sent by (output started at /public_html/dev/admin/controller/startup/error.php:34) in /public_html/dev/system/library/response.php on line 12.
I have not installed any extensions or theme.
Note: When I created the DB, it defaulted to the swedish default but I have since updated it to utf8_general_ci
As suggested in another forum post, I amended the php.ini and admin/php.ini files. I removed the semicolon from the end of each line but it did not resolve the issue.
If anyone has any suggestions as to how I can resolve this, it would be much appreciated.
Thanks,
Philip
In the php.ini and admin/php.ini files. You need remove the semicolon from the end of each line.
So
To
If you are using cPanel with EasyApache 4 or similar. You may also need to login to your cPanel and go to Software -> MultiPHP INI Editor -> Editor Mode and make the same change there for your domain.
So
Code: Select all
default_charset = UTF-8;
Code: Select all
default_charset = UTF-8
Correct, they should about look like this: (shop php.ini shown below)
Code: Select all
magic_quotes_gpc = Off
register_globals = Off
default_charset = UTF-8
memory_limit = 640M
max_execution_time = 36000
upload_max_filesize = 999M
safe_mode = Off
mysql.connect_timeout = 20
session.use_only_cookies = On
session.use_trans_sid = Off
session.cookie_httponly = On
session.gc_maxlifetime = 172800
allow_url_fopen = on
;display_errors = 1
;error_reporting = E_ALL
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I've been self-hosting OC on PHP 5.6+oc1.5.6.4 for over 7 years, and recently added PHP7.3+oc2.3.0.2, with semi-colon no problem.
Now one of my clients moved to a shared platform, PHP7.3+oc2.3.0.2, with semi-colon no problem.
Only when I add a new client to this shared platform, PHP7.3+oc2.3.0.2, with semi-colon this problem manifest itself!
This shared platform uses cPanel's MultiPHP Manager.... weird.
Now one of my clients moved to a shared platform, PHP7.3+oc2.3.0.2, with semi-colon no problem.
Only when I add a new client to this shared platform, PHP7.3+oc2.3.0.2, with semi-colon this problem manifest itself!
This shared platform uses cPanel's MultiPHP Manager.... weird.
Well, beeing around OC for such a long time, creating income,
you did not seem to be very active at the OC forum, as it looks. Weird ....
you did not seem to be very active at the OC forum, as it looks. Weird ....
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
charlesso wrote: ↑Tue Sep 08, 2020 5:58 pmI've been self-hosting OC on PHP 5.6+oc1.5.6.4 for over 7 years, and recently added PHP7.3+oc2.3.0.2, with semi-colon no problem.
Now one of my clients moved to a shared platform, PHP7.3+oc2.3.0.2, with semi-colon no problem.
Only when I add a new client to this shared platform, PHP7.3+oc2.3.0.2, with semi-colon this problem manifest itself!
This shared platform uses cPanel's MultiPHP Manager.... weird.
Code: Select all
default_charset = UTF-8;
The problem occurs when cPanel's MultiPHP Manager will process your php.ini and rewrite it along with your user.ini. It will add double quotes which means that PHP will not then ignore the semicolon, which in turn causes the error.
Code: Select all
default_charset = "UTF-8;"
Spot on @ADD Creative. I need to update my skills to work on shared platforms. Thanks!ADD Creative wrote: ↑Tue Sep 08, 2020 6:46 pmcharlesso wrote: ↑Tue Sep 08, 2020 5:58 pmI've been self-hosting OC on PHP 5.6+oc1.5.6.4 for over 7 years, and recently added PHP7.3+oc2.3.0.2, with semi-colon no problem.
Now one of my clients moved to a shared platform, PHP7.3+oc2.3.0.2, with semi-colon no problem.
Only when I add a new client to this shared platform, PHP7.3+oc2.3.0.2, with semi-colon this problem manifest itself!
This shared platform uses cPanel's MultiPHP Manager.... weird.Although wrong, will actually work if used in a php.ini file. As PHP will ignore the semicolon.Code: Select all
default_charset = UTF-8;
The problem occurs when cPanel's MultiPHP Manager will process your php.ini and rewrite it along with your user.ini. It will add double quotes which means that PHP will not then ignore the semicolon, which in turn causes the error.Code: Select all
default_charset = "UTF-8;"
Who is online
Users browsing this forum: No registered users and 81 guests