Title: fractalbit's Replies | WordPress.org

---

# fractalbit

  [  ](https://wordpress.org/support/users/fractalbit/)

 *   [Profile](https://wordpress.org/support/users/fractalbit/)
 *   [Topics Started](https://wordpress.org/support/users/fractalbit/topics/)
 *   [Replies Created](https://wordpress.org/support/users/fractalbit/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/fractalbit/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/fractalbit/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/fractalbit/engagements/)
 *   [Favorites](https://wordpress.org/support/users/fractalbit/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OptionTree] Upload Image, Makes Option Tree Go Blank](https://wordpress.org/support/topic/upload-image-makes-option-tree-go-blank/)
 *  [fractalbit](https://wordpress.org/support/users/fractalbit/)
 * (@fractalbit)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/upload-image-makes-option-tree-go-blank/page/2/#post-2227159)
 * 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?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OptionTree] Upload Image, Makes Option Tree Go Blank](https://wordpress.org/support/topic/upload-image-makes-option-tree-go-blank/)
 *  [fractalbit](https://wordpress.org/support/users/fractalbit/)
 * (@fractalbit)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/upload-image-makes-option-tree-go-blank/page/2/#post-2227157)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OptionTree] Upload Image, Makes Option Tree Go Blank](https://wordpress.org/support/topic/upload-image-makes-option-tree-go-blank/)
 *  [fractalbit](https://wordpress.org/support/users/fractalbit/)
 * (@fractalbit)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/upload-image-makes-option-tree-go-blank/page/2/#post-2227150)
 * 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](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](http://127.0.0.1/mysite)
   instead of [http://localhost/mysite](http://localhost/mysite).
 * Here are some relevant links:
 * [http://www.sitepoint.com/forums/showthread.php?529312-getimagesize()-filename-URL](http://www.sitepoint.com/forums/showthread.php?529312-getimagesize()-filename-URL)
 * [http://cameronpreston.com/development/getimagesize-on-a-wp_get_attachment_image_src/](http://cameronpreston.com/development/getimagesize-on-a-wp_get_attachment_image_src/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OptionTree] [Plugin: OptionTree] Image upload bug](https://wordpress.org/support/topic/plugin-optiontree-image-upload-bug/)
 *  [fractalbit](https://wordpress.org/support/users/fractalbit/)
 * (@fractalbit)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-optiontree-image-upload-bug/#post-2358730)
 * I also have this bug. If i set an upload field, upload an image and then save
   the settings, the theme options do not load! Without getting an error either.
   Weirdly enough this only happens in my local testing enviroment and not in the
   live server. So this is maybe a server configuration setting? Can anyone help?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [I lost the bullets in the sidebar lists](https://wordpress.org/support/topic/i-lost-the-bullets-in-the-sidebar-lists/)
 *  Thread Starter [fractalbit](https://wordpress.org/support/users/fractalbit/)
 * (@fractalbit)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/i-lost-the-bullets-in-the-sidebar-lists/#post-690571)
 * Ok, I FOUND IT!!!!!!!!!!!!
 * The problem was caused when enabling the (excellent, except this) wp-polls plugin!
   No matter if a poll was enabled in the sidebar or not.
 * This was because, when the plugin was enabled it linked to the polls-css.css 
   which had the following code inside:
 *     ```
       .wp-polls ul li:before, wp-polls-ul li, .wp-polls-ans ul li:before, #sidebar ul ul li:before {
       	content: '';
       }
       ```
   
 * The “solution” is to remove `, #sidebar ul ul li:before` from the code. So you
   should have:
 *     ```
       .wp-polls ul li:before, wp-polls-ul li, .wp-polls-ans ul li:before {
       	content: '';
       }
       ```
   
 * This will have the side effect to also show the bullet points for the poll options.
   I am not so proficient in css to solve this but I will inform the creator of 
   wp-polls plugin … hope this helps someone 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [I lost the bullets in the sidebar lists](https://wordpress.org/support/topic/i-lost-the-bullets-in-the-sidebar-lists/)
 *  Thread Starter [fractalbit](https://wordpress.org/support/users/fractalbit/)
 * (@fractalbit)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/i-lost-the-bullets-in-the-sidebar-lists/#post-690566)
 * I havent messed up with the default theme at all. All the changes i made were
   to a custom theme. Even when i choose the default or the classic theme and remove
   all the widgets from the sidebar but the categories (or the blogroll, just to
   have something to see the lists) the bullets do not show 🙁
 * I tried with the default theme the validator you suggest and it says it passed
   with no errors, but still the damn bullets do not show!

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