fractalbit
Forum Replies Created
-
Forum: Plugins
In reply to: [OptionTree] Upload Image, Makes Option Tree Go BlankWeird, 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
In reply to: [OptionTree] Upload Image, Makes Option Tree Go BlankHi 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
In reply to: [OptionTree] Upload Image, Makes Option Tree Go BlankHello, 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 https://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 https://127.0.0.1/mysite instead of https://localhost/mysite.
Here are some relevant links:
https://www.sitepoint.com/forums/showthread.php?529312-getimagesize()-filename-URL
https://cameronpreston.com/development/getimagesize-on-a-wp_get_attachment_image_src/
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Image upload bugI 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
In reply to: I lost the bullets in the sidebar listsOk, 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
In reply to: I lost the bullets in the sidebar listsI 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!