When I upload a JPEG everything works just fine. However, when upload a RAW it does work. I have the php.ini upload limits set to 25M. I was able to upload a 7MB JPEG file but not a 7MB RAW file. Below is the error I am recieving:
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: PHP Fatal error: Uncaught exception 'ImagickException' with message 'Can not process empty wand' in /home/photobound/public_html/plugins/photo_bank/models/photo_bank_image.php:264, referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: Stack trace:, referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #0 /home/photobound/public_html/plugins/photo_bank/models/photo_bank_image.php(264): Imagick->getimagewidth(), referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #1 /home/photobound/public_html/plugins/photo_bank/models/photo_bank_image.php(124): PhotoBankImage->computeImageFieldsForSave(), referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #2 /usr/share/php/cake/cakephp/cake/libs/model/model.php(1282): PhotoBankImage->beforeSave(Array), referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #3 /home/photobound/public_html/plugins/photo_bank/controllers/photo_bank_images_controller.php(131): Model->save(Array), referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #4 [internal function]: PhotoBankImagesController->upload('-1'), referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #5 /usr/share/php/cake/cakephp/cake/dispatcher.php(204): call_user_func_array(Array, Array), referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #6 /usr/share/php/cake/cakephp/cake/dispatcher.php(171): Dispatcher->_invoke(Object(PhotoBankImagesController), Array), referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #7 /home/photobound/public_html/webroot/index.php(84): Dispatcher->dispatch(), referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: #8 {main}, referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
[Wed Aug 17 17:23:55 2011] [warn] [client 192.168.1.6] mod_fcgid: stderr: thrown in /home/photobound/public_html/plugins/photo_bank/models/photo_bank_image.php on line 264, referer: http://photobound.local/photo_bank/js/plupload/plupload.flash.swf
Here is the code on line 264:
$this->data['PhotoBankImage']['width'] = $this->image->getImageWidth();
Here are my php.ini settings that I thought were relevent:
post_max_size = 25M
post_max_size = 25M
memory_limit = 512M
max_execution_time = 120
max_input_time = 120
I'd appreciate any help, let me know if you need anything else from me in order understand the problem.
RAW files are not standard images. Standard graphics libraries are not going to be able to work with them. The format varies depending on camera make/model, etc.
Related
I have created a website and just uploaded it on a virtual host, but when I try accessing it I get the "This page isn’t working (HTTP ERROR 500)" and I got this from the error log file, I understand it is something to do with the file paths but I don't know how to fix it. does anyone know how to fix it?
[Sun Dec 20 00:18:28.000823 2020] [fcgid:warn] [pid 2449] [client 89.168.52.229:52594] mod_fcgid: stderr: PHP Warning: require(/home/ae504/public_html/AuctionSystem/View/Template/header.phtml): failed to open stream: No such file or directory in /home/aee504/public_html/AuctionSystem/View/index.phtml on line 1
[Sun Dec 20 00:18:28.000849 2020] [fcgid:warn] [pid 2449] [client 89.168.52.229:52594] mod_fcgid: stderr: PHP Stack trace:
[Sun Dec 20 00:18:28.000853 2020] [fcgid:warn] [pid 2449] [client 89.168.52.229:52594] mod_fcgid: stderr: PHP 1. {main}() /home/aee504/public_html/AuctionSystem/index.php:0
[Sun Dec 20 00:18:28.000856 2020] [fcgid:warn] [pid 2449] [client 89.168.52.229:52594] mod_fcgid: stderr: PHP 2. require_once() /home/aee504/public_html/AuctionSystem/index.php:5
[Sun Dec 20 00:18:28.000859 2020] [fcgid:warn] [pid 2449] [client 89.168.52.229:52594] mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required '/home/ae504/public_html/AuctionSystem/View/Template/header.phtml' (include_path='.:/usr/share/php') in /home/aee504/public_html/AuctionSystem/View/index.phtml on line 1
[Sun Dec 20 00:18:28.000862 2020] [fcgid:warn] [pid 2449] [client 89.168.52.229:52594] mod_fcgid: stderr: PHP Stack trace:
[Sun Dec 20 00:18:28.000865 2020] [fcgid:warn] [pid 2449] [client 89.168.52.229:52594] mod_fcgid: stderr: PHP 1. {main}() /home/aee504/public_html/AuctionSystem/index.php:0
[Sun Dec 20 00:18:28.000868 2020] [fcgid:warn] [pid 2449] [client 89.168.52.229:52594] mod_fcgid: stderr: PHP 2. require_once() /home/aee504/public_html/AuctionSystem/index.php:5
/home/ae504/public_html/AuctionSystem/View/Template/header.phtml
The file doesn't exist or is not readable. Simple *nix error
Either your templating engine is not producing it, or it is being produced but not readable. Given your error report, there is no way of telling. Suggest you go look at whatever framework you are using.
I have got a little problem. My application runs into a Error 500 each time this line of code is executed in PHP 7.2 (PHP 5.6 was fine)
function selfDbDM($query,$type=0)
{
global $db;
static $db_exe = array();
$error = 0;
if($type==0)
{
$db_exe[] = $query;
}
else
{
//Do Something
}
}
The calling script simply just calls
selfDbDM('SQL QUERY ...');
selfDbDM('SQL QUERY 2 ...');
etc.
Then it calls
selfDbDM('',1);
to submit every change to DB.
I am doing it that way, so that I can use mysqli_autocommit in a simple way.
Now the thing is, I have switched the server for better performance and now the code is not working anymore.
EDIT:
Errorlog
[Tue Oct 15 22:55:51.371463 2019] [fcgid:warn] [pid 11859:tid 140389409335040] [client 37.201.185.7:8833] mod_fcgid: stderr: Stack trace:, referer: https://xyz/index.php?page=contract_new&step=2
[Tue Oct 15 22:55:51.371468 2019] [fcgid:warn] [pid 11859:tid 140389409335040] [client 37.201.185.7:8833] mod_fcgid: stderr: #0 /var/www/vhosts/xyz/public/system/page/contract_new.php(171): selfDbDM('INSERT INTO `ko...'), referer: https://xyz/index.php?page=contract_new&step=2
[Tue Oct 15 22:55:51.371472 2019] [fcgid:warn] [pid 11859:tid 140389409335040] [client 37.201.185.7:8833] mod_fcgid: stderr: #1 /var/www/vhosts/xyz/public/system/page/contract_new.php(340): contract_new_save_step2(), referer: https://xyz/index.php?page=contract_new&step=2
[Tue Oct 15 22:55:51.371477 2019] [fcgid:warn] [pid 11859:tid 140389409335040] [client 37.201.185.7:8833] mod_fcgid: stderr: #2 /var/www/vhosts/xyz/include/core.function.php(300): init_contract_new(), referer: https://xyz/index.php?page=contract_new&step=2
[Tue Oct 15 22:55:51.371481 2019] [fcgid:warn] [pid 11859:tid 140389409335040] [client 37.201.185.7:8833] mod_fcgid: stderr: #3 /var/www/vhosts/xyz/public/system/index.php(58): include_page('contract_new', '/var/www/vhosts...', '/var/www/vhosts...'), referer: https://xyz/index.php?page=contract_new&step=2
[Tue Oct 15 22:55:51.371485 2019] [fcgid:warn] [pid 11859:tid 140389409335040] [client 37.201.185.7:8833] mod_fcgid: stderr: #4 {main}, referer: https://xyz/index.php?page=contract_new&step=2
[Tue Oct 15 22:55:51.372000 2019] [fcgid:warn] [pid 11859:tid 140389409335040] [client 37.201.185.7:8833] mod_fcgid: stderr: thrown in /var/www/vhosts/xyz/include/functions_mysql.php on line 132, referer: https://xyz/index.php?page=contract_new&step=2
EDIT 2:
Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/vhosts/cash-keeper.eu/dev2.cash-keeper.eu/include/functions_mysql.php:132
Found the issu...
PHP told me everytime that line 132 was the problem.
That was this line:
$db_exe[] = $query;
But a couple of lines later, after one successfull db commit, the array gets cleared like that
$db_exe = '';
Well PHP 7.2 doesn't support that type of "its a string, but we need an array, then its an array" anymore.
So the real problem was, that in the first db commit was doing alright because it was an array. After that one it got cleared to a string, in the secound round to commit something to the db, that could not work anymore.
The fix was just to change the line where the array was cleared to this:
$db_exe = array();
Well thanks to all.
I've tested all of the php examples that came with the API and none gives me results.
The Api was installed with composer.
i have some errors resulted when running the script ( ips,locations,keys were changed here )
[Sat Apr 20 02:20:51.324822 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: PHP Fatal error: Uncaught EDAM\\Error\\EDAMUserException in /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/EDAM/UserStore/UserStore.php:2603
[Sat Apr 20 02:20:51.324885 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: Stack trace:
[Sat Apr 20 02:20:51.324899 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #0 /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/EDAM/UserStore/UserStore.php(543): EDAM\\UserStore\\UserStore_getUser_result->read(Object(Thrift\\Protocol\\TBinaryProtocol))
[Sat Apr 20 02:20:51.324913 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #1 /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/EDAM/UserStore/UserStore.php(504): EDAM\\UserStore\\UserStoreClient->recv_getUser()
[Sat Apr 20 02:20:51.324925 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #2 [internal function]: EDAM\\UserStore\\UserStoreClient->getUser('oceanindien-ful...')
[Sat Apr 20 02:20:51.324936 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #3 /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/Evernote/Store/Store.php(50): call_user_func_array(Array, Array)
[Sat Apr 20 02:20:51.324973 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #4 /server/public_html/test.php(207): Evernote\\Store\\Store->__call('getUser', Array)
[Sat Apr 20 02:20:51.324984 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #5 {main}
[Sat Apr 20 02:20:51.324993 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: thrown in /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/EDAM/UserStore/UserStore.php on line 2603
$token = 'my-real-token-here';
$sandbox = true;
$china = false;
$client = new \Evernote\Client($token, $sandbox, null, null, $china);
$search = new \Evernote\Model\Search('comores');
$notebook = null;
$scope = \Evernote\Client::SEARCH_SCOPE_BUSINESS;
$order = \Evernote\Client::SORT_ORDER_REVERSE | \Evernote\Client::SORT_ORDER_RECENTLY_CREATED;
$maxResult = 5;
$results = $client->findNotesWithSearch($search, $notebook, $scope, $order, $maxResult);
var_dump($results);
foreach ($results as $result) {
$noteGuid = $result->guid;
$noteType = $result->type;
$noteTitle = $result->title;
$noteCreated = $result->created;
$noteUpdated = $result->updated;
}
I've checked the linked account that has notes with those tags or keys but the api gives me no results returned.
How can i get the list of my TAGS from the linked account ?
How can i get a list of my notes and/or notebooks from my account ?
The sandbox key is full access not basic.
I've searched for examples that i tried on the server, but the return was or ERROR 500 or empty page,
I've echo/printed the results but no results returned !
What i do wrong, or what do i need to do so the api work ?
I get the following error:
[Fri Dec 22 19:45:04.824183 2017] [fcgid:warn] [pid 11484:tid 140643225478912] (104)Connection reset by peer: [client xx.xx.xx.xx] mod_fcgid: error reading data from FastCGI server, referer: http://8-bit.nl/ag-admin/import.php?action=node
[Fri Dec 22 19:45:04.824289 2017] [core:error] [pid 11484:tid 140643225478912] [client xx.xx.xx.xx] End of script output before headers: getSpecificNode.php, referer: http://8-bit.nl/ag-admin/import.php?action=node
It's a PHP-script which reads XML files and post this into the database.
I found online that it has something to do with FcgidBusyTimeout. How can I change this value in .htaccess? I'm on shared hosting.
i am using the php and mysql to create a profile page using the get methode to get the username from the url like this (http://localhost/Unnamed%20Site%202/resources/username) so i used the .htaccess but the problem was that the root folder where i put the .htaccess was disappear and i get an error msg from the browser :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
anyone can help me??
this is the appache_error.log
[Mon Mar 18 19:13:05 2013] [error] [client 127.0.0.1] PHP 1. {main}() C:\\wamp\\www\\Unnamed Site 2\\resources\\profile.php:0, referer: http://localhost/Unnamed%20Site%202/resources/
[Mon Mar 18 19:13:16 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:13:21 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:13:52 2013] [alert] [client 127.0.0.1] C:/wamp/www/Unnamed Site 2/resources/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/Unnamed%20Site%202/resources/account-setting.php
[Mon Mar 18 19:13:52 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:23:09 2013] [alert] [client 127.0.0.1] C:/wamp/www/Unnamed Site 2/resources/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/Unnamed%20Site%202/resources/profile.php
[Mon Mar 18 19:23:09 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:23:09 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:23:11 2013] [alert] [client 127.0.0.1] C:/wamp/www/Unnamed Site 2/resources/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/Unnamed%20Site%202/
[Mon Mar 18 19:23:11 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:23:12 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:23:13 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:23:14 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Mon Mar 18 19:23:16 2013] [alert] [client 127.0.0.1] C:/wamp/www/Unnamed Site 2/resources/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/
[Mon Mar 18 19:23:16 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Unnamed%20Site%202/
[Mon Mar 18 19:23:16 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Unnamed%20Site%202/
[Mon Mar 18 19:23:16 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Unnamed%20Site%202/
[Mon Mar 18 19:23:16 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Unnamed%20Site%202/
[Mon Mar 18 19:23:16 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Unnamed%20Site%202/
[Mon Mar 18 19:23:16 2013] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
and this is the profile.php
// updatede for using the GET methode for ge the data nedded from the url
if(isset($_GET['u']))
{
$username = mysql_real_escape_string($_GET['u']);
if(ctype_alnum($username))
{
//check user exist
$check = mysql_query("SELECT user_name, first_name FROM user WHERE user_name = '$username' ")or die(mysql_error());
if (mysql_num_rows($check)==1)
{
$get = mysql_fetch_assoc($check);
$username = $get['user_name'];
$fname = $get['first_name'];
}
else
{
// this line is to redirect the unexist users to the index.php
echo "<meta http-equiv=\"refresh\" content=\"0; url=http://localhost/Unnamed Site 2/resources/index.php\">";
exit();
}
}
}
?>
.htaccess
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?u=$1 [L]
This error message
[Mon Mar 18 19:13:52 2013] [alert] [client 127.0.0.1] C:/wamp/www/Unnamed Site 2/resources/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/Unnamed%20Site%202/resources/account-setting.php
hints at a missing mod_rewrite module. You must first install and/or configure it, before you can use it.