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.
Related
I have to run a php file every 5 seconds , and have two issues
1. The file works perfectly when opened in a browser, but running the 'php myfile.php' command fails and produces the following error
PHP Warning: include_once(../tutadmin/config/config.php): failed to open stream: No such file or directory in /var/www/html/cron/teacher_status_cron.php on line 3
PHP Warning: include_once(): Failed opening '../tutadmin/config/config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/cron/teacher_status_cron.php on line 3
PHP Notice: Use of undefined constant TBL_USER - assumed 'TBL_USER' in /var/www/html/cron/teacher_status_cron.php on line 5
PHP Notice: Use of undefined constant TEACHER_USER_GROUP_ID - assumed 'TEACHER_USER_GROUP_ID' in /var/www/html/cron/teacher_status_cron.php on line 9
PHP Notice: Undefined variable: current_user_id in /var/www/html/cron/teacher_status_cron.php on line 14
PHP Notice: Undefined variable: current_date_time in /var/www/html/cron/teacher_status_cron.php on line 15
PHP Notice: Undefined variable: dbc in /var/www/html/cron/teacher_status_cron.php on line 20
PHP Fatal error: Uncaught Error: Call to a member function Query() on null in /var/www/html/cron/teacher_status_cron.php:20
Stack trace:
#0 {main}
thrown in /var/www/html/cron/teacher_status_cron.php on line 20
Crontab will not run the program every 5 seconds, only every minute at best.
Edit: the file does not work outside of cron in the CLI either, only on a web browser.. Cron is not the issue.
Because you have not right permissions on file, your cron can not open file, change permissions.
[20-Feb-2015 17:45:02 Europe/Berlin] PHP Fatal error: Class 'Varien_Autoload' not found in /home/vzvutpbd/public_html/app/Mage.php on line 53
[20-Feb-2015 17:46:32 Europe/Berlin] PHP Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/vzvutpbd/public_html/app/Mage.php on line 49
[20-Feb-2015 17:46:32 Europe/Berlin] PHP Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/lib/php:/usr/local/lib/php:/home/vzvutpbd/php') in /home/vzvutpbd/public_html/app/Mage.php on line 49
Ensure that all files listed are there & have appropriate read permissions.
Magento - Wiki - Resetting File Permissions
This should resolve your issues, granted the files are indeed there.
I am trying to import the mediawiki dump in fresh install of mediawiki, latest stable version.
[root# maintenance]# php importDump.php < dump_en.xml.bz2
and I am getting
[root# maintenance]# php importDump.php < dump_en.xml.bz2
PHP Warning: XMLReader::read(): uploadsource://2fe09586b4f978244fd125df8178a93f:1: parser error : Document is empty in /var/www/public_html/includes/Import.php on line 449
Warning: XMLReader::read(): uploadsource://2fe09586b4f978244fd125df8178a93f:1: parser error : Document is empty in /var/www/public_html/includes/Import.php on line 449
PHP Warning: XMLReader::read(): BZh91AY&SYцу[dЕЖ_ЪUЪЪЪЪЪЪЗ©ЪЪЪЪЪЪЪЪЪ· in /var/www/public_html/includes/Import.php on line 449
Warning: XMLReader::read(): BZh91AY&SYцу[dЕЖ_ЪUЪЪЪЪЪЪЗ©ЪЪЪЪЪЪЪЪЪ· in /var/www/public_html/includes/Import.php on line 449
PHP Warning: XMLReader::read(): ^ in /var/www/public_html/includes/Import.php on line 449
Warning: XMLReader::read(): ^ in /var/www/public_html/includes/Import.php on line 449
PHP Warning: XMLReader::read(): An Error Occured while reading in /var/www/public_html/includes/Import.php on line 449
Warning: XMLReader::read(): An Error Occured while reading in /var/www/public_html/includes/Import.php on line 449
[6c11e6cc] [no req] Exception from line 453 of /var/www/public_html/includes/Import.php: Expected <mediawiki> tag, got
Backtrace:
#0 /var/www/public_html/maintenance/importDump.php(286): WikiImporter->doImport()
#1 /var/www/public_html/maintenance/importDump.php(253): BackupReader->importFromHandle(resource)
#2 /var/www/public_html/maintenance/importDump.php(97): BackupReader->importFromStdin()
#3 /var/www/public_html/maintenance/doMaintenance.php(113): BackupReader->execute()
#4 /var/www/public_html/maintenance/importDump.php(291): require_once(string)
#5 {main}
I have already set:
$wgShowExceptionDetails = true;
in LocalSettings.php
How can I import the dump in the media-wiki?
I've installed restler using composer. I've set up a virtual host for it. I'm able to go to my localhost in my browser and it shows some informational pages but as soon as I try one of the APIs I get a server 500 error.
My PHP logs say:
Function main
Error Type E_ERROR
Source File /public/examples/_001_helloworld/index.php : 18
Error String Class 'Luracast\Restler\Restler' not found
I'm using the example code straight out of the project. It looks like it has the require_once '../../../vendor/restler.php' and it seems to still have 500 errors.
I'm using PHP 5.4.16 on a Mac.
Update
Here are all of my logs:
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: include(/Users/ChrisLondon/composer/autoload_classmap.php): failed to open stream: No such file or directory in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 432
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: include(): Failed opening '/Users/ChrisLondon/composer/autoload_classmap.php' for inclusion (include_path='.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear:/opt/local/lib/php') in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 432
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: include(/Users/ChrisLondon/composer/autoload_namespaces.php): failed to open stream: No such file or directory in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 432
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: include(): Failed opening '/Users/ChrisLondon/composer/autoload_namespaces.php' for inclusion (include_path='.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear:/opt/local/lib/php') in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 432
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: array_values() expects parameter 1 to be array, boolean given in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 154
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: array_merge(): Argument #2 is not an array in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 155
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: array_merge(): Argument #1 is not an array in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 155
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: array_map(): Argument #2 should be an array in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 166
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: array_filter() expects parameter 1 to be array, null given in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 166
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: natsort() expects parameter 1 to be array, null given in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 167
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: array_unique() expects parameter 1 to be array, null given in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 170
[05-Sep-2013 17:05:09 America/Denver] PHP Warning: implode(): Invalid arguments passed in /Users/ChrisLondon/personal/SuperfyMe/vendor/Luracast/Restler/AutoLoader.php on line 170
[05-Sep-2013 17:05:09 America/Denver] PHP Fatal error: Class 'Luracast\Restler\Restler' not found in /Users/ChrisLondon/personal/SuperfyMe/public/examples/_001_helloworld/index.php on line 19
It seems like it's trying to find the autoload class here: /Users/ChrisLondon/composer/autoload_classmap.php but the file is actually here: /Users/ChrisLondon/personal/SuperfyMe/vendor/composer/autoload_classmap.php
Solved my issue.
It turns out because I have a folder named composer/ that happens to be two folders up from where the Restler app sits it ruins the Restler autoloader. To solve the issue one needs to do one of the following:
1) Don't have any folder named composer/ two folders up from where the Restler app resides
2) Modify the Restler autoloader to skip the folder (at the time of this post you could comment out line 138 of /vendor/Luracast/Restler/Autoloader.php)
A more elegant solution has been proposed by me on GitHub:
Issue: https://github.com/Luracast/Restler/issues/195
Pull Request: https://github.com/Luracast/Restler/pull/196
By the time someone else finds this post hopefully the issue will be resolved in future versions of Restler.
My cakephp app 2.1.1 is currently running on Cent OS server and I keep getting 500 internal server error on random occasions whenever I try to log into the system using Auth component.
I thought it was something to do with Apache httpd.conf settings so I changed to AllowOverride All from None but it keeps on happening.
I'm not sure whether this is to do with .htaccess or something else with Cakephp.
Is this actually a bug for Cakephp 2.1.1?
UPDATE 12/APR/2012
I'm getting below errors in log:
2012-04-11 16:26:27 Warning: Warning (512): _cake_model_ cache was unable to write 'default_ticketing_jobs_localgovstategovfedjobs' to Apc cache in [/home/commstrat2_web/html/ticket/lib/Cake/Cache/Cache.php, line 306]
Trace:
Cache::write() - CORE/Cake/Cache/Cache.php, line 306
DataSource::_cacheDescription() - CORE/Cake/Model/Datasource/DataSource.php, line 306
Mysql::describe() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 334
Model::schema() - CORE/Cake/Model/Model.php, line 1281
DboSource::fields() - CORE/Cake/Model/Datasource/DboSource.php, line 2180
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1027
Model::find() - CORE/Cake/Model/Model.php, line 2635
JobsLocalgovstategovfedjobsController::index() - APP/Controller/JobsLocalgovstategovfedjobsController.php, line 38
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 488
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 103
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85
[main] - APP/webroot/index.php, line 96
2012-04-11 16:26:30 Warning: Warning (512): _cake_core_ cache was unable to write 'file_map' to Apc cache in [/home/commstrat2_web/html/ticket/lib/Cake/Cache/Cache.php, line 306]
Trace:
Cache::write() - CORE/Cake/Cache/Cache.php, line 306
App::shutdown() - CORE/Cake/Core/App.php, line 884
[main] - [internal], line ??
2012-04-11 16:26:30 Warning: Warning (512): _cake_core_ cache was unable to write 'method_cache' to Apc cache in [/home/commstrat2_web/html/ticket/lib/Cake/Cache/Cache.php, line 306]
Trace:
Cache::write() - CORE/Cake/Cache/Cache.php, line 306
DboSource::__destruct() - CORE/Cake/Model/Datasource/DboSource.php, line 3148
[main] - [internal], line ??
Also when I enabled debug and try to log out below error aswell on browser:
Fatal error: Call to a member function logout() on a non-object in /home/commstrat2_web/html/ticket/app/Controller/UsersController.php on line 117
When I turn off debug, it's just coming with blank screen this happens only when logging in and out.
This totally sounds like a file permission issue. Double check the app/tmp folder to make certain the permissions on the sub-directories are correct.