Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
File Uploader Plugin doesnt upload files
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 8, 2016 - 7:36 am
sp_QuotePost Quote

I still don't really get it though.

I am seeing what looks to me a mobile menu icon (3 parallel horizontal lines) but tapping them does nothing.

And still no Bootstrap library is being loaded.

You still have JS errors on page load.

And I do not know now if the uploader is working for you or not. You seem to suggest by your last post that it is now working which leaves my confused as to what we are now discussing...?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 8, 2016 - 7:37 am
sp_QuotePost Quote

Gentlemen,

To add to the confusion I just, by chance, checked the forum as an Admin and all of a sudden the file uploader worked(!).

I have no idea how, and why, this happened.

I uploaded the post as Admin and checked the post as a regular guest and everything looks fine.

I have no clue what is going on.

Should I try and enable WP 3 Cache again to see if it stops working?

It seems that the changes I do (code, plugin settings, etc) have some delay to it before some of them kicks in live(?).

Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 8, 2016 - 7:41 am
sp_QuotePost Quote

Swordfish;

The uploader works with the line of code that Mr Papa supplied.

As you can see now; it works.

However, when putting in that new code supplied by Mr Papa, the menu in mobile/smaller screen which is toggable stops working.

Changing to the old code; menu starts working but file uploader doesnt.

Above is basically a summary of it all and where we stand right now.

Sorry about the confusion.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 8, 2016 - 8:40 am
sp_QuotePost Quote

So posts #32 and #33 contradict each other. I will take 33 as the situation as it is now.

You have missed the point I was trying, perhaps long-windedly, to make.

If what I was looking at on your site this morning was the version where uploading works but the mobile menu fails then - as I have said a couple of times above - the bootstrap library is NOT being loaded at all. This suggests to me that bootstrap is responsible for the mobile menu code (which sounds about right) and the reason it is not working is because it doesn't exist.

This is turn, could be because the code changes are not working - and remember please that we can not test or verify that. I would suggest you please double check the details. Is it the correct location for the bootstrap JS file? Is it the correct name?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 8, 2016 - 11:03 am
sp_QuotePost Quote

Apologies again but you are right; post 33 is the one that is correct.

I think that I have become a bit blind on the matter as we have gone back and forth.

I have inserted the line, replaced the old line of code, exactly where Mr Papa told me to do in the Theme Functions.php file.

We did find some other Bootstrap in another PHP file but that was not it according to Mr Papa and I am sorry to say that I cant be of much help when it comes to the matter.

Is that the answer you were looking for?

I will happily give you access to the website if you feel that is a shorter way to go and perhaps be able to help others in future cases.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 8, 2016 - 11:28 am
sp_QuotePost Quote

Well - let's pick it apart and do it step by step.

Does this file exist on your server?:

../wp-content/themes/dreamland/js/bootstrap.min.js

andy-signature.png
YELLOW
SWORDFISH
Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 8, 2016 - 11:43 am
sp_QuotePost Quote

Yes it does.

View post on imgur.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 8, 2016 - 12:04 pm
sp_QuotePost Quote

Ok good. So it DOES exist at that location which means the code given you by @mr-papa should work. But it is not working and is not loading the script.

I think I might be able to see why.

Take a look at your image again: 

View post on imgur.com

Look closely at the 4 single quote characters and then compare them to all the other quote marks in that block of code. These first 4 are illegal in php and program code. They are basically word processing quote marks. They MUST be changed to the proper text quote. 

Mr Papa mentioned this in an earlier post and asked you to re-do the changes using the raw code button from the code popup. Edit them with a plain text editor - like the one that probably comes with your hosting control panel or - maybe - the simple WordPress supplied editor in the admin themes folder.

You need to ensure they are the same as all the others - the simple textual; quote mark as opposed to the fancy curling mark. Change and save.Then see what happens.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 8, 2016 - 12:25 pm
sp_QuotePost Quote

I see what you are saying.

The quote mark in the code should be an '  

What I dont get then, since ALL code is written with the other wrong quotation mark that it can work at all?

All the code in the Theme Functions.php file are using the wrong quotation mark so how can that be?

Which lines should be changed to include the right quotation mark for Bootstrap to work?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 8, 2016 - 12:33 pm
sp_QuotePost Quote

I don't understand what you are asking.

As you said you DID understand what I meant I am unsure why you are asking which ones to change plus I already told you - the first four that you used on the code line you changed. For reference here it is again:

wp_enqueue_script( 'dreamland_bootstrap', get_template_directory_uri().'/js/bootstrap.min.js', array('jquery', 'query-ui-core', 'jquery-ui-widget'), false, true );

Use the RAW CODE link above the code. Copy from the window that pops up. Paste that into the program file and make sure all the quotes are the simple sort.

As to the rest of the code there is no way that it can contain the 'curly' quotes

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: 620
Members: 17368
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626