This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Sinto001

  • ***
  • 68 posts
I tried to update my listing as user and also tried to add new listing but both the time it on clicking update (on existing listing) or publish (on new listing). It leads to HTTP Error 500 page. In case of new listing it gets add in the listing but when the users publish it for first time it goes to HTTP Error page. Same for updating the existing listing.
When the page is reloaded users go to Recaptcha validation has failed message as shown in snapshot or goes to login page with other error messages like "listing update error 3" snapshot

How to avoid this HTTP Error 500 page redirection so users can go to proper account page and don't get logged out as it happens sometimes ?
« Last Edit: December 15, 2020, 03:45:33 PM by MB Themes »

*

MB Themes

Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #1 on: December 12, 2020, 01:19:15 PM »
Enable error log and you will also see details.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sinto001

  • ***
  • 68 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #2 on: December 12, 2020, 04:17:09 PM »
Enable error log and you will also see details.

Which error log you intended. I found following in the options

define(OSC_DEBUG, true); - enable PHP debugging

define(OSC_DEBUG_LOG, true); - stores PHP debug into log file

define(OSC_DEBUG_DB, true); - enable DB debugging

*

Sinto001

  • ***
  • 68 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #3 on: December 13, 2020, 09:11:22 AM »
Please reply

*

officela

  • ***
  • 64 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #4 on: December 13, 2020, 07:48:32 PM »
You need to place the lines below into config.php file located at the root of your installation.
This way you will see what is the reason of your error 500 sicne you will see the logs.

define(OSC_DEBUG, true);

define(OSC_DEBUG_LOG, true);

define(OSC_DEBUG_DB, true);



I had the same error and i solved it this way:  ( this does not mean you have the same issue but to know it you need see the error log )

Settings --> Mail Server - >Use POP before SMTP

uncheck this and tell me if it works now.
« Last Edit: December 13, 2020, 07:53:10 PM by officela »

*

Sinto001

  • ***
  • 68 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #5 on: December 13, 2020, 08:25:51 PM »
You need to place the lines below into config.php file located at the root of your installation.
This way you will see what is the reason of your error 500 sicne you will see the logs.

define(OSC_DEBUG, true);

define(OSC_DEBUG_LOG, true);

define(OSC_DEBUG_DB, true);



I had the same error and i solved it this way:  ( this does not mean you have the same issue but to know it you need see the error log )

Settings --> Mail Server - >Use POP before SMTP

uncheck this and tell me if it works now.

Settings --> Mail Server - >Use POP before SMTP
is already unchecked

*

Sinto001

  • ***
  • 68 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #6 on: December 14, 2020, 10:45:15 AM »
I had turned on the debug as suggested by you but there is nothing displayed there. And the same redirection issue persists. Take look at the snapshots.
On submitting update or new listing first snapshot appears
On reloading page second snapshot appears and users gets logged out.

*

MB Themes

Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #7 on: December 14, 2020, 10:51:18 AM »
@Sinto001
This is proper code to enable debugging.
Code: [Select]
// Enable debugging
define('OSC_DEBUG', true);
define('OSC_DEBUG_DB', true);
define('OSC_DEBUG_LOG', true);
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sinto001

  • ***
  • 68 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #8 on: December 14, 2020, 12:25:07 PM »
I have added your code and tried updating a listing. Again I got the same issue, the page is redirected to HTTP Error 500 Page. Same thing I suppose happens when user adds a new listing. Why it is redirecting that is the problem but I can see the changes are updated or the listing is added. Issue is this redirection and user getting logged out. Admin also has same problem when they updates any listing or add a new one from their end.
The redirected link is myclassifiedxx.com/index.php

See 1st snapshot after new listing is added and/or a listing is modified or updated
See 2nd snapshot after page is reloaded, where  user is logged out with some error messages

*

MB Themes

Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #9 on: December 14, 2020, 12:35:05 PM »
@Sinto001
If error log is enabled, you should not have such error shown but you should see details. Consolut with your hosting provider.
You might have also output in oc-content/debug.log file in your hosting.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sinto001

  • ***
  • 68 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #10 on: December 14, 2020, 03:53:02 PM »
Ok I will take their help but meanwhile can you see the debug file and suggest where is the issue coming from.

*

MB Themes

Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #11 on: December 14, 2020, 03:54:38 PM »
@Sinto001
[14-Dec-2020 20:20:39 Asia/Kolkata] PHP Fatal error:  Uncaught PHPMailer\PHPMailer\Exception: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting in /home/u794139114/public_html/classifieds/oc-includes/vendor/phpmailer/phpmailer/src/PHPMailer.php:1879

You should first test your mail server.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sinto001

  • ***
  • 68 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #12 on: December 14, 2020, 03:58:06 PM »
@Sinto001
[14-Dec-2020 20:20:39 Asia/Kolkata] PHP Fatal error:  Uncaught PHPMailer\PHPMailer\Exception: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting in /home/u794139114/public_html/classifieds/oc-includes/vendor/phpmailer/phpmailer/src/PHPMailer.php:1879

You should first test your mail server.

I cannot understand what to do?

*

MB Themes

Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #13 on: December 14, 2020, 03:59:41 PM »
@Sinto001
First, properly configure and test your mail server.
Your hosting provider should be able to help with that.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sinto001

  • ***
  • 68 posts
Re: Updating or Adding new Listing goes to HTTP ERROR 500 page
« Reply #14 on: December 14, 2020, 04:17:34 PM »
@Sinto001
First, properly configure and test your mail server.
Your hosting provider should be able to help with that.
What is this message in mail server options in Settings
Apache Module mod_ssl is not loaded