We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Internal server error 500 Php - debug | Forum

Dakota
Dakota Sep 2 '17
Hello!  I have the Revolution Responsive theme...and I'm having the worst time with it getting this error page.  When anyone puts a link (from a news site) or accidentally puts the embed code for a youtube video....my site shuts down and I get this page. And then I cannot use the site and I have to go to a backup and restore it.  Its horrible.  I even had a webmaster try to find the "offending (url) link" from the new york times, but it also happened with putting embed code from youtube (not supposed to go there) into the comments box...here is what the comments box looks like (similar to fb)  and accidents will happen like putting embed code from youtube, but each time a link (which looks normal and is normal) sets it off and then I'm in the internal server error - down -  until I do a restore.  I have lost a ton of info...and members this way.
Attachments:
  comment text box.jpg (130Kb)
  Screenshot_2017-09-02-12-03-43-1.jpg (174Kb)
Dakota
Dakota Sep 5 '17
I have purchased 2 themes in 5 days from Oxwall -- and both have the same issue!!!!  PHP 500 error when posting urls into comment boxes on both the Revolution Responsive theme and the Facebook Responsive themes....I have asked fastcomet about it and here is what they say....as my site has been down 3x in 3 days from the SAME ERROR and people on a social media site NEED to post URLS!!!!!  Here is what fastcomet told me:  It looks to be that the issue being is largely due to the fact that each time the Authorisation Que is processed when accessing the Main Section of your website, there is a custom PHP HTTP error for your application being displayed. We say custom because it belongs to the default configuration of your application. The original error is 404 (Not Found), which explains why were were unable to replicate it via any error_logs. At this point in time we have traced the query execution as it looks to be failing when being unable to find or load said content through the MAIN Section of your website.

This is largely due to either the content configuration being improper setup or the fact that the table that holds said content in your database is not able to process said query. In both instances you will need to contact a certified web developer to review the matter further and make the necessary link changes between the database and your application so to resolve this issue indefinitely and prevent if from ever occurring.


NOW I need to get a Web Developer to fix what should be working!!!!!  And how come no one answers these questions!  I posted my first one 3 days ago!  


HELP!

Ebenezer Obasi
Ebenezer Obasi Sep 5 '17
Please enable debug mode and take a screenshot so we can tell where the problem is actually coming from.


Thanks

Dakota
Dakota Sep 5 '17
I don't know how to do that... :( but here is what the fastcomet people told me as much as they could tell me: I have checked the application error log and noticed the following entries: "[Mon Sep 4 22:18:24 2017] [ow_core_log] [Exception] Message: `entityType`, `entityId`, `userId`, `pluginKey` are required File: /home/trumpsoc/public_html/ow_plugins/notifications/classes/console_bridge.php Line:58 [Tue Sep 5 8:42:34 2017] [ow_core_log] [Exception] Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type":"link","description":"Hurricane Harvey has left more than one million peop' at line 1 File: /home/trumpsoc/public_html/ow_core/database.php Line:723 As far as, I can see the messages are referring to a database query and issue with the same."

It has happened when I post an url into the Main or Dashboard area of User comment box...not all the time just about a 3 times - enough to get the php 500 error...here is the screen captures of the code and what is affected recently...but I've gotten these 2x before...one other time posting a url with news from the New York Time and another from posting a youtube video....and now again by posting an article from an news url.

The whole website doenst' go down just he menu page (like in this case the MAIN page) goes down...I guess it depends on where you are posting it.  The previous error took the Dashboard and the Main page down on the member side.

Thank you.  :)

Dakota

Attachments:
  error from sept 5th am.jpg (1183Kb)
Ebenezer Obasi
Ebenezer Obasi Sep 5 '17
1. Goto to cPanel >> File Manager >> Navigate and edit /ow_includes/config.php


2. On the line 47, replace  define('OW_DEBUG_MODE', false); with  define('OW_DEBUG_MODE', true); and save.


3. Reproduce the error again and post a screenshot.

The Forum post is edited by Ebenezer Obasi Sep 6 '17
Dakota
Dakota Sep 5 '17
Thanks for responding Ebenezer...but in my cpanel (I'm a novice at all of this) I don't see a Navigate section in my file manager...are you familiar the fastcomet cpanel?    Also in #2 you have "on line 47, replace  define('OW_DEBUG_MODE', true); with  define('OW_DEBUG_MODE', true) <------ they both say the same thing...nothing is changed in the code.  Is that your intention?


Thank you for your assistance because its only a matter of time before I get the php500 error when someone copys  a new url into a comment box. :(


D.

Ebenezer Obasi
Ebenezer Obasi Sep 6 '17

My bad, on line 47, replace  define('OW_DEBUG_MODE', false); with  define('OW_DEBUG_MODE', true); and save.


I am familiar with fastcomet cPanel. Launch the "File Manager" and go to www/your_oxwall_installation_path/ow_includes/ then, edit config.php file.

Daniel
Daniel Aug 5 '21
Hi, was there a resolution to this error? I get the same issue with members posting external URL links!