Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: awks on April 10, 2024, 01:09:33 PM

Title: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 10, 2024, 01:09:33 PM
I tried to move a board and I now seem to have trashed 3 or 4 boards. All the data is there, I just need the order of the boards sorted with the correct posts in them please?
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Sir Osis of Liver on April 10, 2024, 01:13:42 PM
SMF version?  What exactly did you do?  Does your host package include 30 day backups?
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 10, 2024, 01:43:30 PM
SMF 2.0.19

I tried to move a board down in the list, then it seemed that some boards were empty. After a refresh all looks ok, then after a while I find a board or 2 that has all its post missing.
To be honest it seems to look different each time I go back in. I am a bit confused at the moment!

OK, it seems that if I log in as admin, everything looks fine and everything is where should be. If I log in as a standard user, the top 3 boards show as if they are empty. The 3 boards that look empty, are boards I did not try to move. Now after a refresh, all seems normal logged in as a standard user!
I do not understand why so much is messing about after just trying to move one board, lets leave this for 12 hours or so to see if things work out. If all seems fine tomorrow, I will delete this post.

I cannot see any 30 day back up, it is hosted with JustHosts.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Kindred on April 10, 2024, 02:16:30 PM
Mods installed?
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 10, 2024, 03:13:11 PM
None
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Kindred on April 10, 2024, 04:14:52 PM
Well, what you describe is not reproducible on an unmodified installation of smf 2.0.19

Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Illori on April 10, 2024, 05:17:04 PM
i seem to recall this being an issue in the past, i am not sure what the fix was but i found this https://www.simplemachines.org/community/index.php?topic=573325.0 and it has a fix in it.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Sir Osis of Liver on April 10, 2024, 10:06:54 PM
Back up your forum files and database before trying that fix.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 11, 2024, 04:11:19 AM
This morning the forum is exactly as it was before I tried to move a board.
I have no idea what went on.
I would still like to know how to move the order of some boards, but to be honest I am frightened to touch anything at the moment!  :-[
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 11, 2024, 08:09:37 AM
Going a bit off topic but, although my version states 2.0.19, when drilling down I can see out of date files as below:

SMF File    Your Version    Current Version
SMF Package    SMF 2.0.19    SMF 2.1.4
Sources                   2.0.12           2.1.4
Default Templates     2.0.19           2.1.4
Language Files          2.0.18           2.1.4

I didn't get any notifications for an update as in the past. So I believe I need to download and install the large upgrade to get it updated to 2.1.4

Is that correct please?

This is what I see in my forum admin section
Version Information:
Forum version: SMF 2.0.19
Current        SMF version: SMF 2.0.19

which is what made me think it was up to date!

Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Steve on April 11, 2024, 09:21:51 AM
Quote from: awks on April 11, 2024, 08:09:37 AMIs that correct please?
Yes. Keep in mind it will remove any mods you may have, custom or not.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Sir Osis of Liver on April 11, 2024, 05:03:43 PM
I'd be hesitant to run 2.1 upgrade on this 2.0.19 forum as is.  If the current install is displaying boards and topics correctly, I would upload clean 2.0.19 files and see if that corrects the version errors and all runs correctly, then do the 2.1 upgrade.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 12, 2024, 04:00:15 AM
So do the 2.0.19 large upgrade as opposed to the Full Install first, if that goes ok, then do the 2.1.4 large upgrade?
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Doug Heffernan on April 12, 2024, 04:06:24 AM
Quote from: awks on April 12, 2024, 04:00:15 AMSo do the 2.0.19 large upgrade as opposed to the Full Install first, if that goes ok, then do the 2.1.4 large upgrade?

You don't need to do it twice imo. You can do a direct upgrade to 2.1.4.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 12, 2024, 06:07:40 AM
When uploading 2.1.4 OR 2.0.19 via package manager I get this error:
An Error Has Occurred!
vsprintf(): Argument #2 ($values) must be of type array, string given
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Doug Heffernan on April 12, 2024, 06:43:06 AM
Quote from: awks on April 12, 2024, 06:07:40 AMWhen uploading 2.1.4 OR 2.0.19 I get this error:
An Error Has Occurred!
vsprintf(): Argument #2 ($values) must be of type array, string given

What is your php version?
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Kindred on April 12, 2024, 07:34:34 AM
You cannot do a large upgrade in the package manager...

Upgrading SMF (https://wiki.simplemachines.org/smf/Upgrading)
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 12, 2024, 07:46:08 AM
ok, create all folders and upload files to them on server is what I am now doing like this:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Doug Heffernan on April 12, 2024, 07:48:00 AM
Quote from: awks on April 12, 2024, 07:46:08 AMok, create all folders and upload files to them on server is what I am now doing like this:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.

What is it that you are trying to do, an upgrade? If so those are not the right steps. Check out the link posted above on how to do a manual upgrade.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Kindred on April 12, 2024, 08:04:36 AM
No...  that is how to do a package manager patch...  you are supposed to be dying a large upgrade.
You can not use the package manager at all.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 12, 2024, 08:56:28 AM
So I do upload them all to the server, but then:
Run the upgrading tool.
Navigate with your browser to the upgrade.php file (it can be found in the directory where SMF is located) and run the upgrade, for example: www.yourdomain.com/forum/upgrade.php.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Kindred on April 12, 2024, 08:58:26 AM
Yes
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Doug Heffernan on April 12, 2024, 10:10:37 AM
Quote from: awks on April 12, 2024, 08:56:28 AMSo I do upload them all to the server,

Not just in the server, but inside whatever folder/location you have used to install your smf forum and don't forget to select the overwrite option as well.

Good luck with the upgrade and let us know how it will go.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 12, 2024, 10:57:04 AM
Hmm  :'(

I uploaded all the files (or so I thought) and then got this:

Settings.php was not found where it was expected: /xxxxx/xxxxxxx/public_html/ddaps.org/ddapschat/Packages/shout/Settings.php! Make sure you have uploaded ALL files from the upgrade package to your forum's root directory. The upgrader cannot continue.

I can see Settings.english.php on the server but not Settings.php so I really have no idea what or where I have screwed up!

If I search the upgrade file I downloaded for Settings.php, it only shows and finds "Setting.template" and "Setting.english"

I uploaded the files to the "Packages" folder on the server in a sub folder called "shout" Was that my mistake?

I was writing this as Doug Heffernan replied.
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: awks on April 12, 2024, 11:12:25 AM
After reading Doug,s post, I think I can see my mistake (I think) I put all the files in a sub folder, I didn't realise it needed to go in the original folder overwriting files (I can see the settings.php in the original installation) I was concerned if I started overwriting files that the forum would stop working while I was doing this.

So I guess I need to delete what I have done and upload the files to the original location using overwrite, is this correct and will the forum still function while I do that please?
Title: Re: [FREE/PAID] Need help solving a mistake
Post by: Doug Heffernan on April 12, 2024, 12:23:19 PM
Quote from: awks on April 12, 2024, 11:12:25 AMSo I guess I need to delete what I have done and upload the files to the original location using overwrite, is this correct?

Yes, that's correct. You can remove the files that were uploaded in the worng location and then upload the files from the large 2.1.4. upgrade package to the location where your forum files are at and overwrite them.


Quote from: awks on April 12, 2024, 11:12:25 AMwill the forum still function while I do that please?

No, the forum will not function after the files have been overwritten. It will function after the upgrade has been finished. A couple of things to keep in mind, make sure that your php version is supported by Smf 2.1.x and make a backup of the database beforehand too.

Did you read the link posted above by Kindred? There you can read in details on how to perform a manual upgrade.
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 12, 2024, 12:26:06 PM
Yes I have and thank you.

The php version is fine, I have backed up all files and the database. I have put the Forum into maintenance mode, and will now bite the bullet and start.
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: Doug Heffernan on April 12, 2024, 12:27:34 PM
Quote from: awks on April 12, 2024, 12:26:06 PMYes I have and thank you.

No problem.

Since this topic is becoming about support I am moving this to the appropriate board.

If you want to either hire someone for the upgrade or find someone to do it for free let us know and I will move the topic back to the Help wanted not for support board.
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 12, 2024, 06:02:18 PM
I have been on this for 12 hours today and am losing the will to live. I have everything it seems uploaded, yet I cannot access the upgrade.php file. JustHosts just disconnected me after 2 1/2 hours of so called support where they ended saying "Please know that when I fetched this link https://www.*****/******/upgrade.php it is again showing a http 500 error.

They faffed about for 2 1/2 hours and disconnected me. I am reconnected to chat now, but I need some sleep! :(

Unbelievable, more faffing about for 30 mins, says it maybe a developer issue and needs to check, then disconnects me. You couldn't make it up with these clowns......
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: Kindred on April 12, 2024, 07:39:00 PM
A 500 error is a server side error and the host should be able to tell you what the trigger/explanation was...

I'd start thinking about a new host...

Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: Sir Osis of Liver on April 12, 2024, 09:19:16 PM
Link to forum?
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 13, 2024, 03:59:01 AM
Quote from: Sir Osis of Liver on April 12, 2024, 09:19:16 PMLink to forum?

https://www.ddaps.org/ddapschat/
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 13, 2024, 04:02:26 AM
Quote from: Kindred on April 12, 2024, 07:39:00 PMA 500 error is a server side error and the host should be able to tell you what the trigger/explanation was...

I'd start thinking about a new host...


Yep I get that, The thing is, yesterday they allowed access fine by changing some permissions (allegedly) but then that is when I discovered that the files were in the wrong directory, as I got the message that the settings.php file could not be found. 6 hours on, and the late shift of support was shocking!

Not sure what to do at the moment!
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 13, 2024, 04:54:49 AM
I put the forum in maintenance mode before I started this, yet I get just a white page with no message about maintenance, I have just looked at the settings.php file and it was set to 0, I manually changed it to 1 yet I still do not get the maintenance message when trying to access the forum!

I am going to attempt another support chat session but it is starting to feel a bit like the "definition of insanity"  ::)
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: Kindred on April 13, 2024, 04:58:04 AM
A full white screen indicates a server side failure of php...
(Yes, could be a 500 error,  you need to check the server logs)
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 13, 2024, 05:07:58 AM
Didn't see the errors yesterday but now I can. It appears to be moaning about no matching directory index. It then goes on to mention it found lots of files but mentions at the end, server-generated directory index forbidden by Options directive.

I can also see "access compat:error - client denied by server configuration:/home3/xxxx/public_html/ddaps.org/wpcontent/updraft/aboutphp

I have no real idea what this all means, is there a way I can send a screenshot of the errors so that someone more knowledgeable would perhaps understand?
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: Kindred on April 13, 2024, 05:14:20 AM
You should have access to the server error log in cpanel,  yes... not sure where your host would put it, though.
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 13, 2024, 05:35:19 AM
I did find them and was editing my post when you replied I think, you can see above your post what I found.
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 13, 2024, 06:59:01 AM
UPDATE:

I am hopelessly at a loss as how to solve this. This below is a summary of the things they have now told me today:
Thank you for being on hold. I could see that the theme baskerville is causing the error. you need to fix the theme to make upgrade by contacting theme support or change the theme.

The website https://www.ddaps.org/ddapschat/ is the php scripted website, we support only wordpress website from our end. Since the website is the scripted website you need to fix this from developer.

I have checked the previous chats. I have changed php version and checked there is no issue with the php version the issue is from the script you need to check with the script.

They say the php scripts I have uploaded is the problem.  Please try to understand we support only WordPress website as it is not WordPress website we don't have support to it. We only fix wordpress websites since the website is php scripted you need to setup and fix from your end.

Well actually it's not something we do provide support as it is related to the configuration of a script, Design, Theme or Plugins.
We are server admins, We are used to managing the server
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I am going to need someone to jump in and help with this, if it is paid help, that should be fine, as I am just going round in circles here!

The theme baskerville is what the DDAPS website uses and the site is working fine. All I wanted to do was update the forum.

Any suggestions please?
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 13, 2024, 08:06:59 AM
Quote from: Doug Heffernan on April 12, 2024, 12:27:34 PM
Quote from: awks on April 12, 2024, 12:26:06 PMYes I have and thank you.


If you want to either hire someone for the upgrade or find someone to do it for free let us know and I will move the topic back to the Help wanted not for support board.

I am going to need this moved as I need paid help with this as I have got nowhere please?

Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: Aleksi "Lex" Kilpinen on April 13, 2024, 08:39:08 AM
I would suggest you write a new topic, and try to explain as much as you can about what needs to be done.
This topic as is is already 2 pages and maybe a bit hard to follow.
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 13, 2024, 08:57:53 AM
Quote from: Aleksi "Lex" Kilpinen on April 13, 2024, 08:39:08 AMI would suggest you write a new topic, and try to explain as much as you can about what needs to be done.
This topic as is is already 2 pages and maybe a bit hard to follow.
I have now done that, thank you.
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: Doug Heffernan on April 13, 2024, 03:48:40 PM
I am marking this as solved as it has been taken care of.
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: awks on April 14, 2024, 05:14:25 AM
Thank you  :)
Title: Re: Need help solving a mistake & upgrading to 2.1.4
Post by: Doug Heffernan on April 14, 2024, 05:14:59 AM
Quote from: awks on April 14, 2024, 05:14:25 AMThank you  :)

You are very welcome :)