bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Images, a pain in my side...

(11 posts)
  • Started 10 months ago by neyoung
  • Latest reply from neyoung
  • This topic is not resolved
  1. First off, sorry mods if this is a double post. I left a comment on the Allow Images plugin page, but I don't think many people read those comments unless they themselves are having a problem. So I thought I would be better off starting a new topic.

    I've been stumbling with getting images to work on my bbpress 0.8.2.1 forums for a day or two now. For some reason the Allow Images 0.7.1 plugin doesn't work for me. When I post an image it gets truncated down to <img /> in the database.

    I've tried using the two spaces before the ending slash - No Luck
    I've also tried editing the bbpress core files like meeciteewurkor recommended - No Luck.

    I did notice that if I used phpmyadmin to edit the database manually and put the <img src="http://domain.com/image.jpg" /> code into a post the image shows up. So there has got to be a function that is filtering out the src part of the image tag or something :(

    Anyone have any suggestions? Is there a function I should be looking at in particular?

    Posted 10 months ago #
  2. Got it working. I ended up doing a fresh install of bbpress. I must have botched some file without knowing it.

    Posted 10 months ago #
  3. hummm... now all of a sudden posting images doesn't work again...

    I've installed the following plugins

    Use Display Names
    Defualt Role
    WordPress Integration
    Allow Images

    I haven't modified any of the core files. I'd like to avoid another fresh install, but that may be my only option. If thats the case I'll reinstall the plugins one by one to find out if thats the culprit.

    Posted 10 months ago #
  4. Does disabling the plugins one by one not work?

    The image plugin seems to be somewhat messed up right now; it breaks use of code on my forum and sometimes I have your problem, too. Not sure why. Hopefully mdawaffle will update it soon.

    Posted 10 months ago #
  5. Nah, disabling all the plugins except the Allow Images plugin doesn't fix it. I'm heading out of town right now, but when I get home I'm going to try to figure out whats going on.

    Posted 10 months ago #
  6. For some strange reason the 'allow images' plugin will either work with my plugins or not. It crashed the 'admin post anything' plugin for me and I had to add it (in the admin-post-anything) plugin to get it to work. Not sure why. I know that doesn't help, but will narrow down that I am almost 100% positive it is a problem with another plugin. It has happened 2 or 3 times for me.....

    Trent

    Posted 10 months ago #
  7. do you do anything to fix it or just do a fresh install?

    Posted 10 months ago #
  8. ok. I've figured out whats causing the problem. It comes down to the Default Role Plugin. There is nothing wrong with the plugin itself other than the fact that it relies on wordpress functions. Thus you need to load wp along with bbpress. To do so I have the following added to the top of my config.php file.

    require_once('../wp-blog-header.php');
    define('WP_BB', true);

    With the two lines in the config.php file the allow images plugin does no work. I even tried disabling the Default Roles plugin and leaving the 2 lines in config.php to make sure the plugin wasn't the culprit. If I remove the two lines the Allow Images plugin works as expected.

    I don't know much, but I could take a stab at whats happening. Is it possible that when a reply/topic is made, bbpress is calling wordpress functions instead of bbpress functions?

    Posted 10 months ago #
  9. In bb-includes there's a file called wp-functions.php containing duplicates of some functions from wp; if you're integrated, it doesn't load those but loads the originals from wp. There must be some discrepancy between the functions there.

    Posted 10 months ago #
  10. I'm using wordpress mu so I'm sure that there is a big discrepancy :(

    Is there a way that I can trace which functions are called when a post is made? That why I can follow the execution with and without the wordpress functions loaded and find out what the difference is?

    Posted 10 months ago #
  11. I found this to trace functions. But I don't have access to the php.ini file so there's no way I can install it :(

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.