Title: 500 Internal Server Error with bbPress
Last modified: August 21, 2016

---

# 500 Internal Server Error with bbPress

 *  [gobeyond](https://wordpress.org/support/users/gobeyond/)
 * (@gobeyond)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/500-internal-server-error-with-bbpress/)
 * Hello,
 * I installed this plugin on WP 3.81 and bbPress 2.5.3. When I uploaded a jpg file
   in the bbPress user profile, I got the 500 Internal Server Error message. The
   avatar was loaded okay though, but the 500 error won’t go away, even after I 
   refreshed the bbPress user profile page. In the WordPress upload folder, I could
   see the avatar files.
 * When I logged in as an admin through the WP backend dashboard, I could upload
   and change users’ avatars without any problem. I only got the 500 error message
   when logging in as a regular user in the bbPress user profile page.
 * I am using a shared server running Apache 2.2.26 and PHP 5.2.17.
 * Thanks in advance for your help!
 * Terry
 * [https://wordpress.org/plugins/basic-user-avatars/](https://wordpress.org/plugins/basic-user-avatars/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jared Atchison](https://wordpress.org/support/users/jaredatch/)
 * (@jaredatch)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/500-internal-server-error-with-bbpress/#post-4825176)
 * What version of WordPress and bbPress are you running? What theme are you using?
   Who is your web host?
 * If you place the shortcode on another page, does that product the same error?
 * I haven’t heard of this issue before so I’m not quite sure what it could be of
   the top of my head. Any details you can provide might help.
 *  Thread Starter [gobeyond](https://wordpress.org/support/users/gobeyond/)
 * (@gobeyond)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/500-internal-server-error-with-bbpress/#post-4825183)
 * Hi Jared,
 * Thanks for replying. The WordPress version is 3.81. The bbPress version is 2.5.3.
   Web host is a shared hosting account with Host Gator, running Apache 2.2.26 and
   PHP 5.2.17.
 * The 500 Error occurred with Theme Twenty Thirteen, Twenty Fourteen and my own
   them. I tried Theme Twenty Twelve and it worked. So, this may have something 
   to do with the theme. But not sure which part of the theme is critical for making
   this plugin work.
 * Where should I put the shortcode?
 * Thanks again for your help on this!
 * Terry
 *  [Stormtribe Development](https://wordpress.org/support/users/hellisher/)
 * (@hellisher)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/500-internal-server-error-with-bbpress/#post-4825418)
 * Find that this plugin could casuse the internal server error while trying to 
   edit some posts.
    Found the problem thou.
 * Around line 145 in init.php replace:
 *     ```
       $avatar_full_path = str_replace( $upload_path['baseurl'], $upload_path['basedir'], $local_avatars['full'] )
       );
       ```
   
 * With:
 *     ```
       $path_parts = pathinfo($local_avatars['full']);
       $avatar_full_path = $upload_path['basedir'].$upload_path['subdir'].'/'.$path_parts['basename'];
       ```
   
 * The problem at our server was that the url never got replaced with server path.
   Probably because url in user meta was saved with http. And our upload url is 
   httpS. SSL.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘500 Internal Server Error with bbPress’ is closed to new replies.

 * ![](https://ps.w.org/basic-user-avatars/assets/icon-256x256.png?rev=2560641)
 * [Basic User Avatars](https://wordpress.org/plugins/basic-user-avatars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basic-user-avatars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basic-user-avatars/)
 * [Active Topics](https://wordpress.org/support/plugin/basic-user-avatars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basic-user-avatars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basic-user-avatars/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Stormtribe Development](https://wordpress.org/support/users/hellisher/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/500-internal-server-error-with-bbpress/#post-4825418)
 * Status: not resolved