Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Cannot upload images
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Mar 25, 2013 - 1:30 pm

Hi,

I'm an admin and I'm trying to upload some images with the upload plugin but can't.

It shows the file and file size but when I hit start upload it just doesn't go! Can anyone help?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 25, 2013 - 3:00 pm

You most probably have a JavaScript conflict - your wp theme or another plugin - which needs to be fixed. This codex article explains the most common conflict we come across, what this means and what to look for:

http://codex.simple-press.com/.....-conflict/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Mar 28, 2013 - 11:11 am

Is there any alternative dumber uploader? A photography forum without upload is really troublesome...

Thanks and take care

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 28, 2013 - 1:03 pm

I can see - how that would be a nuisance!

Why don't we find out what the problem is and fix it? Isn't that the best all-round solution? Why don't you give me a link to your site in case I can spot the issue?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Mar 29, 2013 - 1:03 pm

http://www.theinspiredeye.net/.....phy-forum/

Thanks so much! I don't understand what the Pagelines folks said here:

http://www.pagelines.com/forum.....-conflict/

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 29, 2013 - 5:04 pm

Curious. Basically they seem to be suggesting that the conflict is caused by some script they are loading called 'bootstrap' and the code fragment they pasted there is a way to deal with it. So I suggest we give it a try...

I would.... go to the forum admin > themes > theme editor and load the spFunctions.php file into the editor.

At the end of this short file you will see what is called a closing php tag - a question mark and right angle bracket. Put the cursor a line or two above that and paste the following code in.

add_action( 'wp_enqueue_scripts', 'deregister_pl_bootstrap' );
 
function deregister_pl_bootstrap() {
    if(sp_is_forumpage()) {
        wp_deregister_script('pagelines-bootstrap-all');
    }
}

IMPORTANT: There Must be NO empty lines AFTER that closing php tag at the bottom.

Save this and see what happens when you run the forum.... If it works then we will need to do a little work. if it doesnlt then we need to look again. Be sure to empty your browser cache before you test this in the forum.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Mar 30, 2013 - 9:22 pm

Unfortunately it does not work :(

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 31, 2013 - 8:02 am

Which part didn't work? Was the Pagelines 'bootstrap' script still getting loaded anyway?

OK - loaded your forum page and yes - it IS still getting loaded. Let me check that call...

Well - the code works for me. At least - let's say that the code WILL identify the page as a forum page at that spot and will run the action hook. SO maybe the name of the script 'pagelines-bootstrap-all' is wrong. I would need to see the original theme code file to discover that.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Apr 1, 2013 - 12:18 am

Happy Easter!

What file would you need exactly? Please PM me your email so I can send it. Thanks so much for the help, extremely grateful!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 1, 2013 - 3:54 am

I have absolutely no idea. While there are some basic common practices and a few ground rules amongst developers of WP themes, many just ignore them and do their own thing. Bad or irresponsible theme is probably our number 1 issue.

As it happens I am working with another theme at the moment for a personal site that includes bootstrap and intend to load SP into the site this morning so let me try that and see if I can detect both is and why bootstrap may be an issue. I will come back on this...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625