PHP importDump.php Mediawiki Import error Document is empty - php

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?

Related

PEAR error + Open Server and Opencart project

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.

Laravel Tinker: Class 'Psy\Exception\ErrorException' not found

I'm trying to run Laravel 5.5 tinker but get an exception when i try to run the factory Command. For example:
factory(App\Article::class, 100)->create();
When i try to run lets say the User:class command in another repository it works without any problems.
PHP error: Class 'Psy\Exception\ErrorException' not found in /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php on line 812
Extended Error-Message:
PHP warning: opendir(/Users/sebastian/Development/app.manager/database/factories): failed to open dir: Too many open files in /Users/sebastian/Development/app.manager/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 145
PHP Warning: Uncaught Psy\Exception\ErrorException: PHP warning: require(/Users/sebastian/Development/app.manager/database/factories/ArticleFactory.php): failed to open stream: Too many open files in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202 in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php:202
Stack trace:
#0 /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php(809): Psy\Exception\ErrorException::throwException(2, 'require(/Users/...', '/Users/sebastia...', 202)
#1 /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(202): Psy\Shell->handleError(2, 'require(/Users/...', '/Users/sebastia...', 202, Array)
#2 /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(202): require()
#3 /Users/sebastian/Development/app.manager/vendor/laravel/framework in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202
PHP Fatal error: Illuminate\Database\Eloquent\Factory::load(): Failed opening required '/Users/sebastian/Development/app.manager/database/factories/ArticleFactory.php' (include_path='.:') in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202
PHP Fatal error: Uncaught Psy\Exception\ErrorException: PHP warning: include(/Users/sebastian/Development/app.manager/vendor/symfony/debug/Exception/FatalErrorException.php): failed to open stream: Too many open files in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php on line 444 in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php:444
Stack trace:
#0 /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php(809): Psy\Exception\ErrorException::throwException(2, 'include(/Users/...', '/Users/sebastia...', 444)
#1 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(444): Psy\Shell->handleError(2, 'include(/Users/...', '/Users/sebastia...', 444, Array)
#2 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(444): include()
#3 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/Users/sebastia...')
#4 [internal function]: Composer\Autoload\ClassLoader->loadClass('Sym in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php on line 444
What I've alrdy tried:
removing and re-ading the laravel/tinker from composer.json

Database not update doctrine2

why I can't update database in my server?
This commit work in local server.
Help please, I do not already know where to look
icc-> php app/console doctrine:schema:update
PHP Warning: Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException' with message 'Warning: require_once(/home/icc/web/icc.kdpu.edu.ua/public_html): failed to open stream: No such file or directory' in /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php:236
Stack trace:
#0 /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php(236): Symfony\Component\Debug\ErrorHandler->handleError(2, 'require_once(/h...', '/home/icc/web/i...', 236, Array)
#1 /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php(236): Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver::getAllClassNames()
#2 /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php(128): Doctrine\Common\Persistence\Mapping\Driver\Anno in /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php on line 236
PHP Fatal error: Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver::getAllClassNames(): Failed opening required '' (include_path='.:/usr/share/pear:/usr/share/php') in /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php on line 236
[Symfony\Component\Debug\Exception\FatalErrorException]
Compile Error: Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver:
:getAllClassNames(): Failed opening required '' (include_path='.:/usr/share
/pear:/usr/share/php')

PHP producing loads of temporary files

My host provider (Bluehost) has disabled all my sites because of an error related to Piwigo or one of it's plugins. This is their email response:
Your account is deactivated because it is filling the servers hard
disks with temporary files. You need to check over your entire account
and make sure that you are A. Removing any temporary files that are
being created. B. You have disabled you scripts from creating files in
the /var/tmp directory.
The example they gave me was:
-rw------- 1 searchtheearth searchtheearth 106M Feb 16 09:49 magick-muzpwYvI
Bluehost took me down before I could continue to see anything.
I tried to deal with tech support but they insist it is not their job to troubleshoot
the scripts that they provide (Piwigo) and have not yet re-enabled my sites.
I told them I can not properly troubleshoot the site if it is not able to be accessed
and they said I can look at all my files and find the problem and only then once I
can attest that there is no problem will they enable my account.
Frankly I am just looking for what causes the error
thrown in /public_html/searchtheearth/admin/include/image.class.php on line 460
[16-Feb-2014 12:21:42 America/Denver] PHP Fatal error: Uncaught exception 'ImagickException' with message 'unable to extend cache
and
PHP Warning: exif_read_data(20140211154425- be740e47.jpg): Incorrect APP1 Exif Identifier Code in /public_html/searchtheearth/admin/include/image.class.php on line 244
So I have placed the error log below and anyone have any ideas as to what would be putting files in the /var/tmp directory and causing the errors below?
My error log is below for the server:
/public_html/searchtheearth/admin/include/uploadify/error_log:
[11-Feb-2014 15:44:25 America/Denver] PHP Warning: exif_read_data(20140211154425- be740e47.jpg): Incorrect APP1 Exif Identifier Code in /public_html/searchtheearth/admin/include/image.class.php on line 244
[13-Feb-2014 11:37:42 America/Denver] PHP Warning: exif_read_data(20140213113742-b6fb09db.jpg): Incorrect APP1 Exif Identifier Code in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:08 America/Denver] PHP Warning: exif_read_data(20140214165308-6d0d3b81.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x4B78, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:10 America/Denver] PHP Warning: exif_read_data(20140214165310-8d9c63a0.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x6170, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:11 America/Denver] PHP Warning: exif_read_data(20140214165311-bfedab06.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x693D, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:12 America/Denver] PHP Warning: exif_read_data(20140214165312-03fcfcf9.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x632E, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:13 America/Denver] PHP Warning: exif_read_data(20140214165313-85188689.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x57E3, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:14 America/Denver] PHP Warning: exif_read_data(20140214165314-6b4e44f0.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x5328, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:16 America/Denver] PHP Warning: exif_read_data(20140214165316-c465919f.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x3E9E, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:17 America/Denver] PHP Warning: exif_read_data(20140214165317-50abf12c.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x416D, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:19 America/Denver] PHP Warning: exif_read_data(20140214165319-ebf0f884.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x754E, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:20 America/Denver] PHP Warning: exif_read_data(20140214165320-3a023621.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x7B9D, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:22 America/Denver] PHP Warning: exif_read_data(20140214165322-834b0071.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x789E, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:23 America/Denver] PHP Warning: exif_read_data(20140214165323-1fd8c75c.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x4517, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:24 America/Denver] PHP Warning: exif_read_data(20140214165324-477282ab.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x7168, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:26 America/Denver] PHP Warning: exif_read_data(20140214165326-fd61f0e5.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x5E68, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:27 America/Denver] PHP Warning: exif_read_data(20140214165327-e4c0b6e3.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x6D32, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:28 America/Denver] PHP Warning: exif_read_data(20140214165328-5d93e8d6.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x5288, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:31 America/Denver] PHP Warning: exif_read_data(20140214165330-f3803539.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x641D, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:32 America/Denver] PHP Warning: exif_read_data(20140214165332-ad04e773.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x708F, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
[14-Feb-2014 16:53:34 America/Denver] PHP Warning: exif_read_data(20140214165334-f67793ed.jpg): Process tag(x0202=JPEGInterch): Illegal format code 0x920D, suppose BYTE in /public_html/searchtheearth/admin/include/image.class.php on line 244
/public_html/searchtheearth/error_log:
#5 {main}
thrown in /public_html/searchtheearth/admin/include/image.class.php on line 460
[16-Feb-2014 12:21:42 America/Denver] PHP Fatal error: Uncaught exception 'ImagickException' with message 'unable to extend cache `/public_html/searchtheearth/upload/2014/02/15/20140215093344-cc4b26dc.jpg': No space left on device # error/cache.c/OpenPixelCache/4102' in /public_html/searchtheearth/admin/include/image.class.php:460
Stack trace:
#0 /public_html/searchtheearth/admin/include/image.class.php(460): Imagick- >scaleimage(1536, 1152)
#1 [internal function]: image_imagick->resize(792, 594)
#2 /public_html/searchtheearth/admin/include/image.class.php(93): call_user_func_array(Array, Array)
#3 /public_html/searchtheearth/i.php(557): pwg_image->__call('resize', Array)
#4 /public_html/searchtheearth/i.php(557): pwg_image->resize(792, 594)
#5 {main}
thrown in /public_html/searchtheearth/admin/include/image.class.php on line 460
[16-Feb-2014 12:21:43 America/Denver] PHP Fatal error: Uncaught exception 'ImagickException' with message 'unable to extend cache `/public_html/searchtheearth/upload/2014/02/15/20140215093344-cc4b26dc.jpg': No space left on device # error/cache.c/OpenPixelCache/4102' in /public_html/searchtheearth/admin/include/image.class.php:460
Stack trace:
#0 /public_html/searchtheearth/admin/include/image.class.php(460): Imagick- >scaleimage(1536, 1152)
#1 [internal function]: image_imagick->resize(792, 594)
#2 /public_html/searchtheearth/admin/include/image.class.php(93): call_user_func_array(Array, Array)
#3 /public_html/searchtheearth/i.php(557): pwg_image->__call('resize', Array)
#4 /public_html/searchtheearth/i.php(557): pwg_image->resize(792, 594)
#5 {main} thrown in /public_html/searchtheearth/admin/include/image.class.php on line 460
[16-Feb-2014 12:21:44 America/Denver] PHP Fatal error: Uncaught exception 'ImagickException' with message 'unable to extend cache `/public_html/searchtheearth/upload/2014/02/15/20140215093344-cc4b26dc.jpg': No space left on device # error/cache.c/OpenPixelCache/4102' in /public_html/searchtheearth/admin/include/image.class.php:460
Stack trace:
#0 /public_html/searchtheearth/admin/include/image.class.php(460): Imagick- >scaleimage(1536, 1152)
#1 [internal function]: image_imagick->resize(792, 594)
#2 /public_html/searchtheearth/admin/include/image.class.php(93): call_user_func_array(Array, Array)
#3 /public_html/searchtheearth/i.php(557): pwg_image->__call('resize', Array)
#4 /public_html/searchtheearth/i.php(557): pwg_image->resize(792, 594)
#5{main) thrown in /public_html/searchtheearth/admin/include/image.class.php on line 460
[16-Feb-2014 12:33:58 America/Denver] PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0
/public_html/searchtheearth/plugins/LocalFilesEditor/error_log:
[12-Feb-2014 13:28:12 America/Denver] PHP Warning: file_get_contents(../../plugins/adult_content/language/en_GB/plugin.lang.php): failed to open stream: No such file or directory in /public_html/searchtheearth/plugins/LocalFilesEditor/show_default.php on line 41
/public_html/searchtheearth/plugins/oAuth/error_log:
[11-Feb-2014 05:33:44 America/Denver] PHP Notice: Undefined index: in /public_html/searchtheearth/plugins/oAuth/auth.php on line 165
[11-Feb-2014 13:13:23 America/Denver] PHP Notice: Undefined index: in /public_html/searchtheearth/plugins/oAuth/auth.php on line 165
/public_html/searchtheearth/plugins/EasyCaptcha/tictac/error_log:
[12-Feb-2014 10:29:23 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 10:44:59 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 10:44:59 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 10:47:20 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 10:47:20 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 10:47:50 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 10:56:45 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 10:56:45 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 10:57:00 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 11:04:52 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 11:04:52 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 11:05:26 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[12-Feb-2014 11:05:31 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:26:58 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:26:58 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:29:10 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:29:35 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:30:20 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:30:20 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:30:27 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:30:44 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:30:44 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:31:03 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 07:31:12 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 21:16:43 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 21:37:13 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 21:37:37 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 21:37:57 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[14-Feb-2014 21:38:18 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
[ 15-Feb-2014 07:23:41 America/Denver] PHP Fatal error: Cannot redeclare drawcircle() in /public_html/searchtheearth/plugins/EasyCaptcha/tictac/functions_tictac.inc.php on line 83
------------------------------------end of log---------------------------------------------------------------------
Piwigo version: 2.6.1
PHP version: 5.4.24
MySQL version: 5.5.36
Piwigo URL: http://searchtheearth.com
Piwigo caches images, this is filling up your space.
How many images are on your space?
The exception you get is simply because you don't have any space left since it created so many images. You should find a way to disable image caching i.e. disabling imagemagick or commenting those lines out of Piwigo if it doesn't have a "turn off image caching" feature

PHP Restler Server 500 Error

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.

Categories