Consistent Exception being logged /concrete/bootstrap/start.php

Permalink 1 user found helpful
Hi,

I'm seeing the following several times a day from users browsing my site. I can't quite narrow it down, so I'm wondering if anyone had any ideas?

Exception Occurred: /path/to/public_html/concrete/bootstrap/start.php:290 Call to a member function send() on a non-object (1)


I'd have to spend some time tracing the code to see what the $request->send(); call is supposed to be doing, but just wondered if you concrete5 gurus out there could shed some light?

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi a575606,

Is there any pattern to the error - does it happen after a specific event or on a specific page?
a575606 replied on at Permalink Reply
I was wondering the same thing, but it's sort of hard to track down. I'm getting around 10 or so entries per day in my reports/logs

Originally thought it had to do with another error I'm getting in mysql (SQLSTATE[HY000]: General error: 2006 MySQL server has gone away), which I'm working with my web host on, but the times don't seem to line up between the two error messages.

Haven't seen any effects when I browse my site. I'm also running the identical site on my Macbook with Ampps and not getting the same error, so it must be a hosting or server issue.

I guess I was just wondering if you knew what bootstrap/start.php is doing and what that object was, so I didn't have to trace the code back to find out. Just to narrow down what might be causing it.

Thanks for your help.
growlrooed replied on at Permalink Reply
growlrooed
I noticed that I'm getting the error showing up as well.

It is telling me that the error is at line 290 of start.php

Here's the code:
Send it to the user
 * ----------------------------------------------------------------------------
 */
$response->send();


Does this have to do with forms?
Is this a bug in 5.7.4?
is it cleared up in 5.7.4.1?
SmoothPixel replied on at Permalink Reply
SmoothPixel
I've seen a similar error in 5.7.4.2 after moving a page to another location:

PHP Fatal error:  Call to a member function send() on a non-object in D:\www\concrete\bootstrap\start.php on line 290

After moving the page, the old URL is still listed in Page Settings > Location > URLs to this Page. Testing any URL in the list (except for the one selected as Canonical) generates the above error. Testing a non existent URL generates the 'Page not found' error as expected - it's only additional URLs for existing pages that seem to be causing the problem.

Maybe this will help you guys track down the problem.

Can anyone confirm if additional URLs work for them in C5.7? Am I doing something wrong or is it a bug?
katz515 replied on at Permalink Reply
katz515
OK I've confirmed this error with my own project, and different environment.

I've submitted the bug report
https://www.concrete5.org/developers/bugs/5-7-4-2/additional-url-ret...

If you see the same bug, please click to confirm.

Thanks!
SmoothPixel replied on at Permalink Reply
SmoothPixel
Hi Katz515

Thanks for testing and posting as a bug - really appreciate it.
katz515 replied on at Permalink Reply
katz515
OK Folks,

This pull request may resolve the error.
https://github.com/concrete5/concrete5/pull/2809...

If you modify the code according to the pull request, it could solve the problem.
SmoothPixel replied on at Permalink Reply
SmoothPixel
Thanks Katz515

Finally got around to testing the fix and it works for me.

When I migrated the site (without the fix) to the production server the bug seemed to disappear. I wish I could pinpoint why but the main thing is it's working.