Cakephp is putting webroot in the url Or appears Blank Plage - php

I've been trying to create a view with data from database, but I have 2 lingering issues:
-> The page stays blank with the message:
No Data Received
ERR_EMPTY_RESPONSE
-> When I click the link to controller that I want, cakephp passes in the url the following url:
myDomain/webroot/controller
I don't know why cakephp is puting webroot in the url.....
In the apache's error.log I have this error:
[Thu Apr 28 16:47:23.169213 2016] [core:notice] [pid 1619] AH00052: child pid 4737 exit signal Segmentation fault (11)
[Thu Apr 28 16:47:23.169217 2016] [core:notice] [pid 1619] AH00052: child pid 4738 exit signal Segmentation fault (11)
[Thu Apr 28 16:47:23.169222 2016] [core:notice] [pid 1619] AH00052: child pid 4800 exit signal Segmentation fault (11)
The Code is here:
gist.github.com/TiagoSilvestre/abc00a8e6da0698754d7f9c1d28d3c9d
I hope someone can help me because this error already appears in 3 differents computers with differents SO(Linux and Windows), but always with apache.
Thanks

Related

SegmentationFault (11) on Apache (macOS)

I'm getting a segmentation fault on macOS, but only when using PHP from homebrew (tried with 7.2, 7.3). If I switch back to default macOS PHP, it works fine.
[Tue Jun 02 22:47:54.220053 2020] [core:notice] [pid 66936] AH00052: child pid 35517 exit signal Segmentation fault (11)
[Tue Jun 02 22:47:55.289187 2020] [core:notice] [pid 66936] AH00052: child pid 35520 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:17.040809 2020] [core:notice] [pid 66936] AH00052: child pid 35521 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:18.116103 2020] [core:notice] [pid 66936] AH00052: child pid 35964 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:19.183073 2020] [core:notice] [pid 66936] AH00052: child pid 35966 exit signal Segmentation fault (11)
I tried to dump Apache core, but had no luck. It only happens (as far as I know) on login screens, such as PhpMyAdmin and wp-login.
Any thoughts?
Thanks!

WordPress is unable to install new plugins, connection aborted at MySQL

My website is working perfectly until I am reading/changing website text content but whenever I am going to install a new plugin, I get the following message:
Installation failed: Connection lost or the server is busy. Please try again later.
After several hours of investigation and tried different solutions, I checked the status of the MySQL host in phpmyadmin. I found every time I hit an install the new plugin button I have an aborted connection variable incremented. Everything is working before/after.
I am hosting a couple of my own websites and all have the same problem now.
I already tried existing solutions for the similar problems, like:
Disabling all plugins.
Switching to the default theme and renaming plugins folder to something else.
Replacing all files of wp-includes and wp-admin with a new copy of WordPress.
Repairing database.
Increasing memory in php.ini and wp-config.php
I also checked errors in apache and I have a segmentation fault every time I try to install a new plugin.
[Mon Sep 24 04:43:03.726633 2018] [core:notice] [pid 18706] AH00051: child pid 18713 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:05.729536 2018] [core:notice] [pid 18706] AH00051: child pid 18714 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:07.731804 2018] [core:notice] [pid 18706] AH00051: child pid 18807 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:42.764302 2018] [core:notice] [pid 18706] AH00051: child pid 21719 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:43.766767 2018] [core:notice] [pid 18706] AH00051: child pid 26183 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:43:45.768930 2018] [core:notice] [pid 18706] AH00051: child pid 26246 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:50:31.167685 2018] [core:notice] [pid 18706] AH00051: child pid 18710 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 24 04:50:34.171751 2018] [core:notice] [pid 18706] AH00051: child pid 26523 exit signal Segmentation fault (11), possible coredump in /etc/apache2

Error Fetching http headers SOAP Client

I am using a SOAP client for placing order in Magento (PHP) and Getting Error Fetching http headers while hitting that webservice.
When I restart httpd then the error disappears and I am able to place order again and again
What I tried
default_socket_timeout : 120
Code Snippet of SOAP CLIENT
$cli = new SoapClient($api_url_v2,
array(
'trace' =>true,
'connection_timeout' => 500000,
'keep_alive' => false,
)
);
checked around the httpd logs and found following
[Mon Oct 17 01:50:24 2016] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/store/app/etc/local.xml
[Mon Oct 17 01:53:53 2016] [notice] child pid 28113 exit signal Segmentation fault (11)
[Mon Oct 17 01:57:52 2016] [notice] child pid 29400 exit signal Segmentation fault (11)
[Mon Oct 17 02:01:14 2016] [notice] child pid 29401 exit signal Segmentation fault (11)
[Mon Oct 17 02:02:50 2016] [notice] child pid 29398 exit signal Segmentation fault (11)
[Mon Oct 17 02:05:38 2016] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/store/app/etc/local.xml
[Mon Oct 17 02:06:40 2016] [notice] child pid 28180 exit signal Segmentation fault (11)
Please let me know if any other information I can provide to track this out.
SOAP trace is not showing anything for me. this problem is with this web service only , my soap client is working fine with others.
Try editing php.ini file soap.wsdl_cache_enabled=1 and change it to soap.wsdl_cache_enabled=0

XAMPP v.3.2.1: Apache crashes when I try to add variables to a session

Problem: Apache keeps crashing if I try to update the global $_SESSION variable in PHP. These are the entries added to error.log in case of a crash.
From apache\logs\error.log:
[Mon Jun 29 14:10:34.142373 2015] [mpm_winnt:notice] [pid 6644:tid 316] AH00428: Parent: child process 1440 exited with status 3221225477 -- Restarting.
[Mon Jun 29 14:10:34.262613 2015] [mpm_winnt:notice] [pid 6644:tid 316] AH00455: Apache/2.4.12 (Win32) PHP/5.6.8 configured -- resuming normal operations
[Mon Jun 29 14:10:34.262613 2015] [mpm_winnt:notice] [pid 6644:tid 316] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Mon Jun 29 14:10:34.262613 2015] [core:notice] [pid 6644:tid 316] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Jun 29 14:10:34.266524 2015] [mpm_winnt:notice] [pid 6644:tid 316] AH00418: Parent: Created child process 6376
[Mon Jun 29 14:10:35.026097 2015] [mpm_winnt:notice] [pid 6376:tid 428] AH00354: Child: Starting 150 worker threads.
Windows Event viewer
About my source code: I have a php script and intend to add variables to an existing session. For that matter, I use $_SESSION and set some keys to arrays, i.e. $_SESSION['foo'] = bar, where bar is an array containing objects of a very simple class having only some string attributes.
If I do that the first time, I'm fine. If I re-assign a value to $_SESSION['foo'] after reloading the page, Apache crashes and immediately restarts. I was able to isolate the crash to this very line, as commenting it out turned out to prevent the crash. First, I assumed my session is somehow corrupted or I use it incorrectly. But if I manually set $_SESSION['foo'] = "", instead of assigning an array, no crash occurs.
Similar reports I found in the web had different error sources, so I tried a few things, e.g.:
Run XAMPP as administrator
Increase the thread stack size in httpd.conf
Deactivate unused php-extensions
Switched to different ports, etc.
Turned off SSL
Unfortunately, nothing helped in my case.
PS: I use XAMPP v.3.2.1 with PHP 5.6.8 on Windows 8.1 (64bit).
EDIT: As suggested by donald123, I turned off SSL. The error persists, but I posted a cleaner log snippet.

Issue when trying to configure new symfony2

I tried going to http://localhost/Symfony/web/config and then I clicked on "configure your symfony application" and then I am getting the following error:
No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this webpage later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
Any idea what and how I should debug this? I am testing this on OS X Mountain Lion, apache2, and PHP 5.4.6
In my logs I am seeing the following:
[Tue Aug 28 00:59:29 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 00:59:51 2012] [notice] child pid 27878 exit signal Segmentation fault (11)
[Tue Aug 28 00:59:52 2012] [notice] child pid 27877 exit signal Segmentation fault (11)
[Tue Aug 28 00:59:52 2012] [notice] child pid 27875 exit signal Bus error (10)
[Tue Aug 28 01:00:10 2012] [notice] child pid 27879 exit signal Bus error (10)
[Tue Aug 28 01:00:14 2012] [notice] child pid 27882 exit signal Segmentation fault (11)
[Tue Aug 28 01:00:20 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 01:00:23 2012] [notice] child pid 27883 exit signal Bus error (10)
[Tue Aug 28 01:00:24 2012] [notice] child pid 27884 exit signal Segmentation fault (11)
[Tue Aug 28 01:00:26 2012] [notice] child pid 27885 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:09 2012] [notice] child pid 27889 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:09 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 01:01:15 2012] [notice] child pid 27892 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:16 2012] [notice] child pid 27893 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:20 2012] [notice] child pid 27894 exit signal Segmentation fault (11)
I guess you're looking for http://localhost/Symfony/web/config.php not http://localhost/Symfony/web/config.
It's in the docs. Check it: http://symfony.com/doc/current/book/installation.html#configuration-and-setup

Categories