Php pear для opencart

Ошибка PEAR + проект Open Server и Opencart

У меня есть проект, основанный на версии Opencart 3+ на моем OpenServer. Затем я пытаюсь загрузить свой проект, у меня есть некоторые ошибки.

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 thrown in C:\OpenServer\domains\depotop\vendor\pear\cache_lite\Cache\Lite.php on line 568 

Груша на моем сервере, версия 7.4 php

# 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 

Почему «Неустранимая ошибка: неперехваченная ошибка: класс« PEAR »не найден в», как я могу это исправить?

Читайте также:  Engine inc init php

Источник

Pear.php

When I try to use the export module, I get the following error.

Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/MYDOMAIN.com/admin/Spreadsheet/Excel/Writer.php on line 35

Fatal error: require_once() [function.require]: Failed opening required ‘PEAR.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/www/MYDOMAIN.com/admin/Spreadsheet/Excel/Writer.php on line 35

Re: Pear.php

Post by tommix » Thu Apr 23, 2009 2:24 am

Re: Pear.php

Post by krbmedia » Thu Apr 23, 2009 9:53 am

Re: Pear.php

Post by JNeuhoff » Thu Apr 23, 2009 5:47 pm

The Export/Import module requires the PHP PEAR library to be pre-installed on your web server. On most web hosts this is normally the case. If your webhost has the cPanel, log into it and scroll down to the Software / Services section where you should find the PHP PEAR Packages link.

Re: Pear.php

Post by krbmedia » Thu Apr 23, 2009 8:12 pm

This is what the hosting company said but I don’t understand it.

The PEAR is already installed on the server and you can check this here:
http://phpinfo.supremecenter103.com/

If you need specific PEAR module, do not forget that you can upload it in your hosting account, configure your scripts and include the module path in the php.ini file located in folder /sys/php4/ or /sys/php5/ (depends from the PHP settings applied for your hosting account.

Источник

Fatal error: Class ‘PEAR5’ not found in.

Can someone please help me? I have spent the last two days just trying to get 50 new products uploaded to my store and I am majorly frustrated right now as I have at least 500 more products to add. I have exported the spreadsheet, spent a day to get these 50 products and options added to the spreadsheets, imported the spreadsheet back in. I do have those 50 items on, but now I am trying to export the spreadsheet again so I can work on adding more products. I am doing this in stages so it will be easier to narrow down if there is a problem with an upload.

Читайте также:  Php temporary file cache

Anyway — Now when I export the spreadsheet from Open Cart, this is what is in the spreadsheet.

Fatal error: Class ‘PEAR5’ not found in /home/. /public_html/system/pear/PEAR.php on line 838

This is so frustrating and time consuming, I am about to move my store back to Yahoo where I had it for the first year. I prefer not to do that, but my store is going down the tubes as I have not been able to post new products since I migrated to Open Cart. Any help will be greatly appreciated!! Thanks in advance.

Re: Fatal error: Class ‘PEAR5’ not found in.

Post by rph » Sat Jun 18, 2011 2:30 pm

Not to be a jerk (which means I’m probably about to be a jerk here) but if JN’s excel import/export module says it requires PEAR5 to be installed on your server to function and it isn’t whose fault is that?

Re: Fatal error: Class ‘PEAR5’ not found in.

Post by seduction » Sat Jun 18, 2011 10:13 pm

Not to be a jerk back, but it is installed.

This did work twice already, and now it stopped working. I even contacted my host and below is their response:

«I see pear was loaded on this server can you provide a way for us to replicate this issue so we can further investigate ?»

Also, I am not a developer. I paid someone to set this store up for me and now I need support. I was not aware of the lack of support that comes with OpenCart or I would not have used it when it was suggested to me, since I am not a developer myself. Since I already paid for this site to be developed, I was hoping to continue using it until I get a return back on my investment, but now that this is broken, I guess I am going to have to find another shopping cart solution. This is a great solution for a programmer/web developer. It would even be great for me if there were answers on things like this. Tell me what I need to look for and I will figure it out.

Читайте также:  Редирект bitrix urlrewrite php

I thought these forums were to get help and not for people to attack someone that is not familiar with this stuff? I am an IT professional, however, not in web development so I count on recommendation from people I hire to do the development end of things and take it from there.

So that being said, since PEAR is installed, why all of a sudden is this not working? I was able to export my entire product tables yesterday and several times before. I added 50+ new products to the table and imported them. My store has the products out there, but now I need to export these tables again so I can add more products. If anyone could help instead of attack, it would be greatly appreciated.

PS — What I meant by «I have not been able to upload new products for months», is that I was informed to be careful as downloading all the products (3000+) and uploading them back up, there is a chance of corrupting the database. So I was waiting for my developer to create an import/export tool which would allow me to append. Unfortunately, I am unable to wait as all my vendors put out hundreds of new products and I am way behind. So yes, it is my fault at this point that I have not been uploading these products sooner. BUT now that I attempted this, and it worked twice already, all of a sudden it stopped working, so maybe I did corrupt the database. However, the store is still functioning so I wouldn’t think this is the case.

So if anyone can PLEASE point me in the right direction, it would be greatly appreciated. I have even attached a screenshot of my system/PEAR directory as well as the Pear & Pear5 php files. Thanks in advance.

Attachments

Screenshot of public_html\system\pear directory — Screen shot 2011-06-18 at 10.31.16 AM.png (117.92 KiB) Viewed 1528 times

Pear5 that resides in /public_html/system/pear/

Источник

Оцените статью