before posting this, I've already tried searching for answers and even bumped into this
old thread solution
but it didn't helped at all. I am very sure that I am passing a .jpg image, but then I am getting this error
imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error:
some say use ini_set("memory_limit", -1) , it didn't help also. I don't think this issue has somethign to do with memory right?, so how to fix this?
Related
This question already has an answer here:
Warning : session_start(): Cannot find save handler 's' - session startup failed
(1 answer)
Closed 3 years ago.
Very intermittently and rarely my Centos7 httpd 2.4.41 and php 5.6.40 server will half load a page. The PHP loads, but the CSS and JS includes get the error 'Connection Reset' in chrome and dump this error into the php error log.
PHP Fatal error: Unknown: Cannot find save handler '/var/lib/php/session'
I have checked permissions on the session files, and the server has plenty of space, the fact that it works most of the time makes my scratch my head.
I've tried switching to memcached but same issue.
Can anyone share any light on whats causing this error?
Or perhaps a way to stacktrace the httpd PID after the fatal error?
Thanks in advance guys.
This issue might be related to your session save path. If you are not precious on where to save the sessions.
edit your php.ini and change the following
we are using the /tmp directory here.
session.save_path = /tmp
more information can be found here
http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
I'm getting the below error while loading my Magento(Version 1.7) in local.I have checked the google and tried few things like setting permissions(chmod),Flushing cache etc, But it didn't workout well.
Below is the error
Fatal error: Class 'Extendware_EWCore_Model_Autoload' not found in /Applications/XAMPP/xamppfiles/htdocs/magento/magento/app/code/local/Varien/Autoload.php on line 14
Can anyone suggest me what to do on this?
Thanks in advance!
Can you please check for the configuration file in the directory:
app/etc/modules/
Look out for a file which has registered probably Extendware_*.xml there might be more than one of them which will need to be disabled/removed.
Please clear cache to update the configuration.
I recently encountered this error in my report.
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 3022731 bytes)
I cant seem to resolved the problem, i already added:
set_time_limit(0);
ini_set('memory_limit', -1);
in my script but it seems the issue is still persistent, by the way im using
PHPExcel ver 1.7.6
My excel file output contains 55 headers and multiple worksheets (closely 45 - increasing) and each sheet contains about 150 to 500 records
I would like to seek for your help and advises to resolve my remedy T_T
Thanks!
I would suggest to import the Excel File into an Access Database and then query the database via ODBC from PHP.
Maybe try using the https://github.com/PHPOffice/PhpSpreadsheet - it`s the rewritten version of PhpExcel. It works way better. I know, because I have used both.
If that does not help your problem you should use caching see: https://phpspreadsheet.readthedocs.io/en/develop/topics/memory_saving/
P.S. if you will be using sqlite3 caching make sure you have the proper extension php-sqlite3 installed, because it fails silently and does not cache if extension is not there.
So I'm doing some maintenance on other people's legacy code, and I've fixed some basic permissions issues, however now in an image uploader, I'm getting the following error:
Warning: getimagesize() [function.getimagesize]: Read error! in /home/kirby/public_html/members/upload_advanced.php on line 211
Now, the permissions for that directory are set to allow read, execution and write - what would cause that issue? Could it be that the uploader isn't correctly writing the information?
I've seen this before, and for me it was a memory issue, failing in the method:
_getNeedMemoryForFile
Probably the safest bet is to wrap to try-catch and handle the exception as gracefully as possible.
I am having this error that comes up when I try to convert certain pdfs into JPEgs
The error message is:
[28-Mar-2011 13:24:02] PHP Fatal error: Uncaught exception '
Stack trace:
#0 /home/bobdole/public_html/viewfile.php(41): Imagick->__con
#1 {main}
thrown in /home/bobdole/public_html/viewfile.php on line 41
The code is:
$im = new imagick($file_location);//Line 41 is here
$im->setImageFormat( "jpg" );
$pdf_pages=$im->getNumberImages();
Any idea what is causing the problem and how to fix it? It does not happen all the time, only with certain PDFs.
GhostScript is installed.
I spent a lot of time playing around with all kinds of PDF-files and imagemagick. This might help others trying to get it all to work. I've found so many solutions here, wouldn't even know how to thank everyone, so here it goes ;)
After a lot of useless tinkering, I figured it wasn't imagemagick which didn't work, but Ghostsript. I had to get the latest version of Ghostscript (i had to build it from source, the packages weren't new enough). I tested it all with pretty much all the available PDF-versions. Updating ghostscript worked pretty well, but still some PDF's were not accepted.
In the end I checked out the logs and discovered that ghostscript fonts are key to the issue. I updated those. After this, it all went smooth. Actually have a site which converts any PDF, right now.