I just cloned my Opencart 1.5.6.1 site with Softaculous in cPanel, so I can make changes in the test site before applying it on the live site.
After clone success, my site has this message appear on the top:
Notice: unserialize(): Error at offset 312 of 1130 bytes in /home/jefferso/public_html/test2/index.php on line 69
Notice: unserialize(): Error at offset 913 of 5545 bytes in /home/jefferso/public_html/test2/index.php on line 69
Notice: unserialize(): Error at offset 327 of 438 bytes in /home/jefferso/public_html/test2/index.php on line 69
The whole site looks weird, all products not accessible, even the admin.
Address: http://jefferson.com.my/test2/
Anyone has idea?
Open your stores database in phpMyAdmin or heidisql, change value TEXT to LONGTEXT.
EMPTY data on SETTING table, and restore.
Related
I have a project based on Opencart 3+ version on my OpenServer.
Then i try to load my project i have some errors.
Notice: unserialize(): Error at offset 0 of 5 bytes in C:\OpenServer\domains\depotop\admin\index.php on line 46
Notice: unserialize(): Error at offset 0 of 22 bytes in C:\OpenServer\domains\depotop\admin\index.php on line 46
Notice: unserialize(): Error at offset 0 of 9 bytes in C:\OpenServer\domains\depotop\admin\index.php on line 46
Notice: unserialize(): Error at offset 0 of 9 bytes in C:\OpenServer\domains\depotop\admin\index.php on line 46
Notice: unserialize(): Error at offset 0 of 29 bytes in C:\OpenServer\domains\depotop\admin\index.php on line 46
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in C:\OpenServer\domains\depotop\system\library\session.php on line 7
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in C:\OpenServer\domains\depotop\system\library\session.php on line 8
Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in C:\OpenServer\domains\depotop\system\library\session.php on line 10
Warning: session_start(): Cannot start session when headers already sent in C:\OpenServer\domains\depotop\system\library\session.php on line 11
Notice: Undefined index: filename in C:\OpenServer\domains\depotop\admin\index.php on line 123
Notice: Error: Could not load language ! in C:\OpenServer\domains\depotop\system\library\language.php on line 43
Warning: Cannot modify header information - headers already sent by (output started at C:\OpenServer\domains\depotop\admin\index.php:46) in C:\OpenServer\domains\depotop\system\library\currency.php on line 52
Warning: unlink(c:/OpenServer/domains/depotop/system/cache/cache_c21f969b5f03d33d43e04f8f136e7682_7f24d9fc4140045241b3f97bcf36bf03): No such file or directory in C:\OpenServer\domains\depotop\vendor\pear\cache_lite\Cache\Lite.php on line 608
Warning: include_once(PEAR.php): failed to open stream: No such file or directory in C:\OpenServer\domains\depotop\vendor\pear\cache_lite\Cache\Lite.php on line 567
Warning: include_once(): Failed opening 'PEAR.php' for inclusion (include_path='C:\OpenServer\domains\depotop\vendor/pear/cache_lite;.') in C:\OpenServer\domains\depotop\vendor\pear\cache_lite\Cache\Lite.php on line 567
Fatal error: Uncaught Error: Class 'PEAR' not found in C:\OpenServer\domains\depotop\vendor\pear\cache_lite\Cache\Lite.php:568
Stack trace:
#0 C:\OpenServer\domains\depotop\vendor\pear\cache_lite\Cache\Lite.php(609): Cache_Lite->raiseError()
#1 C:\OpenServer\domains\depotop\vendor\pear\cache_lite\Cache\Lite.php(459): Cache_Lite->_unlink()
#2 C:\OpenServer\domains\depotop\admin\model\localisation\currency.php(170): Cache_Lite->remove()
#3 C:\OpenServer\domains\depotop\admin\controller\common\login.php(89): ModelLocalisationCurrency->updateCurrencies()
#4 C:\OpenServer\domains\depotop\system\engine\front.php(42): ControllerCommonLogin->index()
#5 C:\OpenServer\domains\depotop\system\engine\front.php(29): Front->execute()
#6 C:\OpenServer\domains\depotop\admin\index.php(160): Front->dispatch()
#7 {main} thrown in C:\OpenServer\domains\depotop\vendor\pear\cache_lite\Cache\Lite.php on line 568
Pear on my server, 7.4 php version
# pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.4.9 stable
Console_Getopt 1.4.3 stable
PEAR 1.10.12 stable
Structures_Graph 1.1.1 stable
XML_Util 1.4.5 stable
Why "Fatal error: Uncaught Error: Class 'PEAR' not found in", how i can fix that?
This error occurs beacuse the file PEAR.php is not found in the given directory. You just include this file. Have you checked, if the file PEAR.php is really in the given path you use with include_once('Pear.php')?
The solution to your problem: Just give the right path to the include function.
I had problems with localhost in wampserver when, I accidentally deleted the wamplangues folder.
I download it from here https://github.com/phlyper/wamp-conf/tree/master/wamp/www/wamplangues
but it's keeps showing me errors like:
Notice: Undefined index: versmaria in C:\wamp64\www\index.php on line
275 Notice: Undefined index: mariaportUsed in C:\wamp64\www\index.php
on line 276 Undefined index: docmaria in C:\wamp64\www\index.php on
line 276
I searched in the index.php file and I saw that this is related to the langues folder... do you have any ideas about that? I'm stucked!
I get tons of this error:
Notice: unserialize(): Error at offset 0 of 205 bytes in /home/xtf/public_html/index.php on line 58
After a failed opencart upgrade atempt, i took all the files from my backup (Working backup) and replaced all files on the server.
I have not done any changes to the data in the MySQL database.
Do anyone have tip on how i can fix this error?
Is there a script i can run?
Line 58$config->set($result['key'], unserialize($result['value']));
find i m trying to convert sequence of images into a video. and for that i canme to know about the ffmpeg class.
the only wrapper class that i found is phpvideotoolkit but i m not able to work with it.
i installed phpvideotoolkit on xampp on my windows 2008 server . but it is throwing alor of errors
This example shows you how to extract a specific frame from a movie.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\MOV00007.3gp" was not found. No images were generated.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\Video000.3gp" was not found. No images were generated.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\cat.mpeg" was not found. No images were generated.
example
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\tmp\1336156630-4fa421d69357d\tmp_%d.jpg" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().
i m trying to make it work since last many hours but no luck
Also, for this code :
$srcFile = "test-mpeg.mpg";
$ffmpegObj = new ffmpeg_movie($srcFile);
i am gettign error that it cant file the file. i believe its something to do with permissions but i m not able to figure out
fpoen , fwrite , file_put_contents all are working fine without any permissions problems.
can anyone please guide me in the write direction. what do i need to do to make this phpvideotoolkit work
I'm trying to get the Ansinerator library to work my on my localhost, but something's amiss.
I'm receiving the following errors:
Notice: Undefined index: hash in ansi.php on line 23 Notice: Undefined index: aml in ansi.php on line 37 Notice: Undefined variable: PNG_DESTRUCT in ansi.php on line 119 Notice: Undefined offset: -1 in ansi.php on line 362 Notice: Trying to get property of non-object in ansi.php on line 362 Notice: Undefined variable: links in ansi.php on line 459 Notice: Trying to get property of non-object in ansi.php on line 677 Notice: Undefined variable: links in ansi.php on line 459 Notice: Undefined variable: map_link in ansi.php on line 687
Any idea where am I going wrong with this one? I've installed the php-gd library, restarted the server, and while runs perfectly on production server, localhost will refuse. Ideas?
Thank you.
Check
- That you've got 'proper' versions of everything installed on localhost. (Compare localhost with production.) There's obviously something different between the 2 servers here, just use phpinfo() to check.
Restart localhost again? (Just kidding...)
Is it possible that you have set different error reporting levels on both servers?
Before anything, put error_reporting(E_ALL); at the top of your script on both servers and see if it runs perfectly. (My guess is you will get errors on both servers)