AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: zonavirtuala on November 21, 2016, 03:18:22 PM

Title: Internal Server Error
Post by: zonavirtuala on November 21, 2016, 03:18:22 PM
Errors  :(
 

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@j******e.ro to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


-------------------------------------

Please,  help me!



   
Title: Re: Internal Server Error
Post by: eCommerce Core on November 21, 2016, 10:14:01 PM
500 Internal Server Error is very generic.

Get more details from your abantecart log or if you see no error there, try to get error from your server log.
Title: Re: Internal Server Error
Post by: zonavirtuala on November 22, 2016, 03:32:41 AM
in Admin Panel :

2016-11-21 18:02:37 - App Error: AbanteCart core v.1.2.6 Error: Error in data of page with controller: 'pages/content/content'. Please check for key_value present where key_param was set in /home/j******e/public_html/core/engine/layout.php on line 182

2016-11-21 19:23:15 - warning: AbanteCart core v.1.2.6 sprintf(): Too few arguments in <b>/home/j******e/public_html/admin/controller/common/footer.php</b> on line <b>44</b>

2016-11-22 1:01:32 - warning: AbanteCart core v.1.2.6 preg_match(): Compilation failed: nothing to repeat at offset 0 in <b>/home/j******e/public_html/core/engine/language.php</b> on line <b>287</b>



-----------------------------------------------
-----------------------------------------------

In cPanel :

[Tue Nov 22 00:25:32.729086 2016] [:error] [pid 794675] (12)Cannot allocate memory: [client 82.145.222.53:36461] couldn't create child process: /opt/suphp/sbin/suphp for /home/j******e/public_html/index.php, referer: http://j******e.ro/index.php?rt=tool/error_log&s=admin123&token=ce27fac5355aff4f2da95c5a09fd9cda

[Tue Nov 22 00:25:32.719767 2016] [:error] [pid 793436] (12)Cannot allocate memory: [client 82.145.222.53:36456] couldn't create child process: /opt/suphp/sbin/suphp for /home/j******e/public_html/index.php, referer: http://j******e.ro/index.php?rt=tool/error_log&s=admin123&token=ce27fac5355aff4f2da95c5a09fd9cda

[Tue Nov 22 00:25:32.702845 2016] [:error] [pid 794675] (12)Cannot allocate memory: [client 82.145.222.53:36461] couldn't create child process: /opt/suphp/sbin/suphp for /home/j******e/public_html/index.php, referer: http://j******e.ro/index.php?rt=tool/error_log&s=admin123&token=ce27fac5355aff4f2da95c5a09fd9cda

[Tue Nov 22 00:25:32.702380 2016] [:error] [pid 793436] (12)Cannot allocate memory: [client 82.145.222.53:36456] couldn't create child process: /opt/suphp/sbin/suphp for /home/j******e/public_html/index.php, referer: http://j******e.ro/index.php?rt=tool/error_log&s=admin123&token=ce27fac5355aff4f2da95c5a09fd9cda

[Tue Nov 22 00:25:06.746299 2016] [:error] [pid 793811] (12)Cannot allocate memory: [client 82.145.222.53:50668] couldn't create child process: /opt/suphp/sbin/suphp for /home/j******e/public_html/index.php, referer: http://j******e.ro/index.php?rt=catalog/product_options&product_id=467&s=admin123&token=ce27fac5355aff4f2da95c5a09fd9cda

[Tue Nov 22 00:25:06.741062 2016] [:error] [pid 793910] (12)Cannot allocate memory: [client 82.145.222.53:50675] couldn't create child process: /opt/suphp/sbin/suphp for /home/j******e/public_html/index.php, referer: http://j******e.ro/index.php?rt=catalog/product_options&product_id=467&s=admin123&token=ce27fac5355aff4f2da95c5a09fd9cda

.....

 [Mon Nov 21 23:07:02.146111 2016] [:error] [pid 636751] (12)Cannot allocate memory: [client 104.223.127.2:47285] couldn't create child process: /opt/suphp/sbin/suphp for /home/j******e/public_html/backup/ow_cron/run.php
Title: Re: Internal Server Error
Post by: abolabo on November 22, 2016, 09:51:37 AM
try to delete(or rename) file /system/logs/error.txt and tell us result
Title: Re: Internal Server Error
Post by: zonavirtuala on November 22, 2016, 04:28:08 PM

  Hello abolabo,

Errors persists ... :( 
Title: Re: Internal Server Error
Post by: abolabo on November 23, 2016, 03:36:22 AM
what about server log? i mean httpd.error log, log of apache
Title: Re: Internal Server Error
Post by: zonavirtuala on November 23, 2016, 03:51:09 AM

cPanel  > error :


[Wed Nov 23 00:43:25.628610 2016] [:error] [pid 780342] (12)Cannot allocate memory: [client 82.145.222.4:58185] couldn't create child process: /opt/suphp/sbin/suphp for /home/j***e/public_html/index.php, referer: http://j***e.ro/index.php?rt=catalog/category&s=admin123&token=a08bcb838be585e659461f73d2d1b2cc

[Wed Nov 23 00:43:25.627425 2016] [:error] [pid 783522] (12)Cannot allocate memory: [client 82.145.222.4:58190] couldn't create child process: /opt/suphp/sbin/suphp for /home/j***e/public_html/index.php, referer: http://j***e.ro/index.php?rt=catalog/category&s=admin123&token=a08bcb838be585e659461f73d2d1b2cc

[Wed Nov 23 00:43:25.617097 2016] [:error] [pid 780342] (12)Cannot allocate memory: [client 82.145.222.4:58185] couldn't create child process: /opt/suphp/sbin/suphp for /home/j***e/public_html/index.php, referer: http://***e.ro/index.php?rt=catalog/category&s=admin123&token=a08bcb838be585e659461f73d2d1b2cc

........


The error occurs ....  inclusive in subdomain test  (abantecart recently installed)



Title: Re: Internal Server Error
Post by: abolabo on November 23, 2016, 07:30:16 AM
can you look into settings->system->system button phpinfo()
What actual memory_limit directive value do you have?
Title: Re: Internal Server Error
Post by: zonavirtuala on November 23, 2016, 08:06:02 AM



memory_limit : 512M


--------------------



in php.ini


 Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 512M
Title: Re: Internal Server Error
Post by: abolabo on November 23, 2016, 11:15:07 AM
what about giant pictures of categories? Can you look biggest file inside /resources/image directory? Is it assigned to category?
try to rename it temporary and open page
Title: Re: Internal Server Error
Post by: abolabo on November 24, 2016, 02:59:14 AM
check permissions for public_html/image directory.
I must be writable for php!

Also you can enable system check settings to view what's going on.
Title: Re: Internal Server Error
Post by: zonavirtuala on November 24, 2016, 03:56:08 AM
permissions for public_html/image directory :  0755

-------------------------------------------------------

1. warning >  Incorrect config.php file permissions

/home/j***e/public_html/system/config.php file needs to be set to read and execute modes to keep it secured from editing!


2. warning >  Incorrect index.php file permissions

home/j***e/public_html/index.php file is writable. It is recommended to set read and execute modes for this file to keep it secured and running properly!


3.   critical   > App Error

aMySQLi class error: Try to escape non-string value: array ( 0 => '6846', ) in /home/j****e/public_html/core/database/amysqli.php on line 119


4.  critical

Error: Error in data of page with controller: 'pages/content/content'. Please check for key_value present where key_param was set


--------------------------------------


  System Logs > Logs >  Error logs :

App Error: AbanteCart core v.1.2.6 Error: Error in data of page with controller: 'pages/content/content'. Please check for key_value present where key_param was set in /home/j***e/public_html/core/engine/layout.php on line 182
Title: Re: Internal Server Error
Post by: abolabo on November 25, 2016, 04:37:57 AM
When i looked into your cpanel it's write that memory_limit size for php - 512Mb, But when i go into settings->system->system and press button phpinfo i see that memory_limit 128Mb there.
Just open your php.ini file inside root directory of your site and increase memory limit to 512.
But i still confused what a cause of crashes. Tried to look into httpd.error but error is generic there.You can ask your hosting provider support about more detailed log.
We have working abantecart with 64Mb memory limit.
Title: Re: Internal Server Error
Post by: abolabo on November 25, 2016, 04:44:34 AM
also i see full-size php.ini in your public_html directory. I think it's a bad idea. Please remove it. i guess you have conflict  on php-level.
Title: Re: Internal Server Error
Post by: zonavirtuala on November 25, 2016, 05:29:58 AM


I deleted, but the problem persists.  I added back.
I changed the php. [  5,5 (native)  in 5,4 ]  and ... nothing. 



The error appears in the media section (upload photo)



update :

database error: AbanteCart core v.1.2.6 Error:
INSERT INTO ab3a_url_aliases (`keyword`, `query`, `language_id`) VALUES ('tridoku-2', 'product_id=481', '1') in <b>/home/j***e/public_html/core/database/amysqli.php</b> on line <b>106</b>
Title: Re: Internal Server Error
Post by: zonavirtuala on November 28, 2016, 07:30:42 AM


I changed manually php.ini file settings like post_max_size and upload_max_filesize.

Info here >  http://docs.abantecart.com/pages/settings/system.html


but this warnings persists :

1. Incorrect index.php file permissions
2. Incorrect config.php file permissions



Thank you for help.

Title: Re: [ solved ] Internal Server Error
Post by: abolabo on November 28, 2016, 08:12:51 AM
just change permissions for files to 444 (only read)