WordPress.org

Ready to get started?Download WordPress

Forums

OptionTree
[resolved] Upload Image, Makes Option Tree Go Blank (39 posts)

  1. thisissparta
    Member
    Posted 3 years ago #

    Hi there,
    So I've used Option Tree all week, working on a new site. Uploading images has been and works fine in the header and homepage options.

    My problem is just in the past couple of hours, I upload an image using the WP uploader while in Option tree, trying to change the header or footer image. The upload works fine, but when I choose "Insert into Post" Option Tree turns white and nothing happens. I tried it in Chrome and Firefox. Also, it worked a few hours ago, but seems to have stopped working.

    Does anyone know what's going on? I tried deactivated/reactivating the plugin as well, but it didn't change anything.

    Any info or advice would be greatly appreciated.

    Thanks : )

  2. leightonhubbell
    Member
    Posted 3 years ago #

    I've got the same issue.

    Most all of the panes on the plugin are working with the exception of the 'General' pane where you can upload the site logo and favicon. It is also uploading the images, but going blank (white) and hangs up.

    I have also uninstalled and installed the plugin several times, but to no avail.

    I am using this same WP theme/OptionTree setup on a couple of other sites and this is the only one giving me problems. And yes, it is up to date.

    Any ideas? Thanks!

  3. Derek Herman
    Member
    Plugin Author

    Posted 2 years ago #

    I have no idea what would be causing this.

  4. chamberstudios
    Member
    Posted 2 years ago #

    I've got the same issue too, I've had to stop using the theme which is brilliant but optiontree is a must for this theme (it doesn't work without it

    http://mdnw.net/html/wp-content/themes/super-skeleton/help/Theme_Install_Checklist.pdf

    I have wordpress 3.2.1, I have latest of all plugins and have literally run it on the basic required for this theme. OptionTree and UpToTheTop

    When I load optiontree to add content, no problem, when I click on the choose item to add to optiontree it allows me to select it but as soon as I press "add to optiontree", the optiontree/wordpress/plugin box goes white and NOTHING loads, this definitely isn't a slow loading thing and the files are small for how long this hangs (longest has been 20minutes + so far.

    I have now had to stop this theme and work on another site, not sure why optiontree doesn't work?

    The thing is though, it was working fine before the update for me :S not sure what happened and I don't know how to go back either, this new update has just stopped me working.

    I don't wish to complain, I'm just letting you know the full extent, and also if there is anything I can provide to be more constructive, please ask

  5. Derek Herman
    Member
    Plugin Author

    Posted 2 years ago #

    @chamberstudios - If it's just the image uploads that are the issue then directly paste the url of the image into the input filed after you have uploaded. No need to throw the baby out with the bathwater. You just need to circumvent the insert part until I can fix it, which means having a system that it breaks on to test.

  6. chamberstudios
    Member
    Posted 2 years ago #

    Hmm I think I'll have to do that, not knocking your design or what you have done, it's really useful so thank you for that. Just a little frustrating me for the end user.

    Thank you for the advice though :)

  7. Derek Herman
    Member
    Plugin Author

    Posted 2 years ago #

    Unless you give me access to your site I can't fix it, so if you like the plugin and want to contribute this is how you can help.

  8. chamberstudios
    Member
    Posted 2 years ago #

    ok sending you some details now

  9. chamberstudios
    Member
    Posted 2 years ago #

    not sure how to send you details? is there a private message somewhere or something?

  10. Derek Herman
    Member
    Plugin Author

    Posted 2 years ago #

    Send it to derek[at]valendesigns[dot]com and I'll take a look tomorrow, it's getting late.

  11. chamberstudios
    Member
    Posted 2 years ago #

    No problem, thank you and have a goodnight

  12. Derek Herman
    Member
    Plugin Author

    Posted 2 years ago #

    I logged in to your site and it works for me. I'm not sure what the issue is, but I'm able to upload and click "Add to OptionTree" and it inserts the image. Am I missing something?

  13. Derek Herman
    Member
    Plugin Author

    Posted 2 years ago #

    What browser are you using?

  14. chamberstudios
    Member
    Posted 2 years ago #

    I just tried it now, uploading an image into wordpress works for me, but then let's say when I am trying to upload an image onto the logo

    using optiontree it says upload your logo, so i select it from the gallery and it hangs for me.

    I have tried this using multiple browsers all refreshed and cleared of all history, content, cookies and flash, etc etc

    Internet Explorer v9.0.8112.16421 64-bit Edition
    Firefox 8.0 beta (latest official update)
    Chrome 15.0.874.106 m (latest official update)

    Still no joy, uploading from computer works you say, does anything else? Like including it in a gallery for example or uploading something from the wordpress gallery?

  15. Derek Herman
    Member
    Plugin Author

    Posted 2 years ago #

    I am uploading by clicking the "Upload Your Logo" "Upload" button and then uploading an image or selecting an image from the gallery and clicking "Add to OptionTree" and everything works fine for me. I'm not sure why it doesn't for you. I've use FireFox, Chrome and Safari and all work. I'm on a mac so no IE.

  16. chamberstudios
    Member
    Posted 2 years ago #

    Not sure what to say about that, what do you think it could be or that I should try that could help resolve this? It's clearly not just me in this situation.

  17. leightonhubbell
    Member
    Posted 2 years ago #

    Glad to see that this issue is getting some assistance.

    I ended up replacing the logo images (with new ones of the same name) that were already called for in the OptionTree theme install folders. Not ideal, but I had no other way to replace the logo and had to complete the site.

    In my case, everything else was working fine in the OptionTree plugin, with the exception of the General pane. It was hanging up on the image load for logo and favicon every single time. The images are loading and appear in the gallery, but will not 'insert into post'. I even tried your typed in URL suggestion, but to no avail.

    I even tried working with various browsers like Google Chrome, Firefox and Safari, with no luck.

    As I mentioned before, I use the same theme and plugin setup on three other sites and none of them have this problem. I even thought that with the recent OptionTree update (1.1.8) that the problem would be resolved, but it has not.

  18. chamberstudios
    Member
    Posted 2 years ago #

    Yea I'm not sure how to react either as it's clearly not my setup alone, there are others with this issue, it isn't browser specific it seems, it isn't in the last update and it seems to be intermittent? One minute all is working fine and the next it starts hanging.

    If this doesn't work I have no choice but to user another theme. This project is already getting delayed. Well hopefully something comes of this, Derek did a good job setting it up so let's hope he finds a way to fix it.

  19. leightonhubbell
    Member
    Posted 2 years ago #

    It's an awesome concept and plugin when everything is working properly. I love it. No issues there.

    But, it does knock out using specific themes that have this plugin as a backbone. Hope this gets resolved.

  20. chamberstudios
    Member
    Posted 2 years ago #

    Good morning/afternoon/evening.

    How is all going, has anything further come from this Derek? Hopefully some progress, if you have not had a chance to look at it, that's fine but I would just like to be up to date with how it all is?

    Please could you let me know, I have a small window left for me to get a refund for the theme if this cannot be fixed anytime soon, I understand you might have a lot to do so please just an update will do :)

    Thank you

  21. fractalbit
    Member
    Posted 2 years ago #

    Hello, i am not sure this is the same bug i was experiencing so let me explain what happened to me first...

    - Uploading an image with optiontree upload's field and clicking 'add to option tree' would work fine but when trying to refresh...

    - Optiontree would hung up and try to load the image for a very long time and finally hung up without displaying the image or the remaining options. Same thing no matter how many refreshes.

    - This only happened in my local testing enviroment using xampp and http://localhost/mysite as the url. Testing in a real site with proper domain name was working fine.

    So... after some digging in the source files of the plugin and google, i found that the problem was that getimagesize function works more reliably if given a path instead of url. I also found that for 'some reason' localhost may not resolve correctly to '127.0.0.1' inside a getimagesize function call.

    The permanent solution is if valendesigns updates his plugin to store the local absolute path to the image instead of the url. That way getimagesize will not fail in localhost urls.

    Another quick and dirty "hack" is to change your site url to http://127.0.0.1/mysite instead of http://localhost/mysite.

    Here are some relevant links:

    http://www.sitepoint.com/forums/showthread.php?529312-getimagesize()-filename-URL

    http://cameronpreston.com/development/getimagesize-on-a-wp_get_attachment_image_src/

  22. bbrt
    Member
    Posted 2 years ago #

    hi there,
    am having exactly the same problems working locally, and the quick and dirty hack (above) doesnt work for me either.
    are there any other solutions. or is there a fix in the pipeline for option tree.
    thanks

  23. fractalbit
    Member
    Posted 2 years ago #

    Hi bbrt, when i say to change the site url i also mean to change it in the database but i haven't tried this myself. What i have tried and worked though, is to modify the file upload.php located at: wp-content\plugins\option-tree\functions\admin

    Inside the file, find the following line:

    <?php if ( is_array( @getimagesize( $settings[$value->item_id] ) ) ) { ?>

    And replace it with this:

    <?php
            $settings[$value->item_id] = str_replace('localhost', '127.0.0.1', $settings[$value->item_id]);
            if ( is_array( @getimagesize( $settings[$value->item_id] ) ) ) { ?>

    It worked fine for me and (theoretically) will not cause any problems even when you publish to a live site, because it modifies the image path only if localhost is fouund inside it.

    Of course this not a real solution but a 'hack'.

    Anyway try it and let me now if it worked.

  24. bbrt
    Member
    Posted 2 years ago #

    hi fractalbit,
    thanks for your time. I have tried your hack and the option tree image loading still hangs for me.
    Am using a commercial theme that makes heavy usage of option tree and I can't develop locally?

  25. fractalbit
    Member
    Posted 2 years ago #

    Weird, maybe localhost in your system is cofigured in different IP and not 127.0.0.1?

    I should note, that these should "fix" the admin area only, not the theme for the frontend that may also use the getimagesize function.

    Or maybe it is a different proplem in your case?

  26. chriscarvache
    Member
    Posted 2 years ago #

    I am experiencing this problem where the screen goes blank after clicking on "Add to Option Tree"

    Tried fractalbit's hack with server's IP address and unfortunately did not work.

    Any help would be appreciated.

  27. amyhall
    Member
    Posted 2 years ago #

    Help! I'm experiencing this problem also!

  28. amyhall
    Member
    Posted 2 years ago #

    Hi everyone!

    I fixed this by manually populating the file url in the link url area of the Add media files from your computer area.

  29. chriscarvache
    Member
    Posted 2 years ago #

    I've done the same! I wouldn't say that's necessarily a fix but, it certainly is a good work around.

  30. leosampieri
    Member
    Posted 2 years ago #

    Hi!, has anyone found a solution to this problem ??.
    I need my client to be able to upload images with the usual administrator, not FTP uploads, and copypaste of links...
    I've started to have this problem a few hours ago...

    Thanks !!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic