Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Railrover on September 25, 2022, 04:02:55 AM

Title: Preview post not working, also format toolbar not showing
Post by: Railrover on September 25, 2022, 04:02:55 AM
SMF 2.1.2 with no mods installed.

Think it may be down to a permissions issue somewhere (although I don't get anything showing up when I run the file permissions checker.

Detailed version check shows 2.1.2 for everything.

I've use the "Restricted - minimum files writeable" profile from the package manager File Permissions screen.

Any ideas?

Cheers

Mike
Title: Re: Preview post not working, also format toolbar not showing
Post by: Steve on September 25, 2022, 07:01:47 AM
Do you have the same problem if you select 'Apply individual file permissions settings ...'?
Title: Re: Preview post not working, also format toolbar not showing
Post by: Railrover on September 25, 2022, 07:35:37 PM
Quote from: Steve on September 25, 2022, 07:01:47 AMDo you have the same problem if you select 'Apply individual file permissions settings ...'?

Thanks for getting back to me, Steve.

I can certainly try - but I'm not sure what permissions I need to give, and to what files.

Cheers

Mike
Title: Re: Preview post not working, also format toolbar not showing
Post by: Kindred on September 25, 2022, 07:44:13 PM
Files should be 664, directories 775
Title: Re: Preview post not working, also format toolbar not showing
Post by: Railrover on September 26, 2022, 07:25:33 PM
Yup - that's what I have (at least according to the SMF File Permissions Checker)

Unfortunately, the only way of checking seems to be to trawl through every directory.  Would anybody have a pointer where I need to double check in case I've missed anything?  If I can find out which file(s) are responsible for showing the format toolbar when you post a message it might help me to see if I've missed one somewhere.

Cheers

Mike
Title: Re: Preview post not working, also format toolbar not showing
Post by: Sir Osis of Liver on September 26, 2022, 08:24:59 PM
Which theme are you using?
Title: Re: Preview post not working, also format toolbar not showing
Post by: live627 on September 27, 2022, 03:33:37 AM
Those features require JavaScript.
Title: Re: Preview post not working, also format toolbar not showing
Post by: Kindred on September 27, 2022, 11:10:16 AM
Your FTP or file manager should allow you to apply chmod permissions in a RECURSIVE manner, changing all files and directories at the same time.
Title: Re: Preview post not working, also format toolbar not showing
Post by: Railrover on September 27, 2022, 10:46:22 PM
But I still don't know which files or folders I'm looking for to set permissions on (they all look fine anyway).

See the difference between posting on the SMF forum (this one) and posting on my own board.  Regarding Javascript - what do I need to tell my ISP to do to get it working?

I do appreciate your help so far  ;D

Cheers

Mike
Title: Re: Preview post not working, also format toolbar not showing
Post by: Railrover on September 27, 2022, 10:47:51 PM
Quote from: Sir Osis of Liver on September 26, 2022, 08:24:59 PMWhich theme are you using?


Just the bog standard theme - I've running a completely vanilla board.

Cheers

Mike
Title: Re: Preview post not working, also format toolbar not showing
Post by: Kindred on September 28, 2022, 12:43:42 AM
What is your forum url?
Title: Re: Preview post not working, also format toolbar not showing
Post by: Sir Osis of Liver on September 28, 2022, 11:44:59 AM
How many files do you have in /Themes/default/scripts/?

What is your setting in Admin > Features and Options > Source for the jQuery Library?
Title: Re: Preview post not working, also format toolbar not showing
Post by: Railrover on September 28, 2022, 08:50:04 PM
Quote from: Kindred on September 28, 2022, 12:43:42 AMWhat is your forum url?

https://www.railrover.co.uk/forum/index.php

Cheers

Mike
Title: Re: Preview post not working, also format toolbar not showing
Post by: Railrover on September 28, 2022, 08:54:31 PM
Quote from: Sir Osis of Liver on September 28, 2022, 11:44:59 AMHow many files do you have in /Themes/default/scripts/?

What is your setting in Admin > Features and Options > Source for the jQuery Library?


52 files in total.

JQuery: Source = Google CDN and url is blank (are we onto something here??)

Cheers

Mike
Title: Re: Preview post not working, also format toolbar not showing
Post by: Sir Osis of Liver on September 28, 2022, 09:38:06 PM
There are 34 files in /scripts in clean 2.1 install, the rest must be from mods.  Not likely it's a jquery issue, bbc buttons and smileys use js, not jq.  Google cdn should work, the url field is blank unless you're using custom source.  Other jq features such as user dropdown wouldn't work if jq wasn't working.  Do any of the script files have a .js~ extension?
Title: Re: Preview post not working, also format toolbar not showing
Post by: Railrover on September 28, 2022, 10:47:55 PM
Quote from: Sir Osis of Liver on September 28, 2022, 09:38:06 PMThere are 34 files in /scripts in clean 2.1 install, the rest must be from mods.  Not likely it's a jquery issue, bbc buttons and smileys use js, not jq.  Google cdn should work, the url field is blank unless you're using custom source.  Other jq features such as user dropdown wouldn't work if jq wasn't working.  Do any of the script files have a .js~ extension?


OK - so this install is an upgrade from a 1.X installation (which may have had some mods but were disabled prior to upgrading).  It also looks like I don't have the ability to cascade file permissons, so several of the javascript files had incorrect permissions set (by default everything gets copied with very restricted permissions, which I need to go and change explicitly).

After setting the files to 0644 it looks like we are back in business.

Many, many thanks for helping me out in this.

Cheers

Mike