Support Forums - Classified Ads Script Osclass

General osclass questions => General discussion => Topic started by: andrewnewby on April 13, 2021, 08:30:24 AM

Title: Upgrade issues
Post by: andrewnewby on April 13, 2021, 08:30:24 AM
Hi,

I'm going from 3.5.9 to the latest copy. I tried to update online, but it just sat there saying "updating..." with a spinner. Firebug console said there was a 500 error.

So I tried the manual update process:

1) Backup my files and DB
2) Upload the new files over them
3) Go to the admin page, where it asks me to click the button to update.

(can't include the link as it won't let me post???)

Looking at my error log, I see (attached, as it tells me I can't upload here due to having links in - even though this code contains no links! I just spent 30 minutes trying to post this thread :( )

Any suggestions on what to try next?

Thanks!

Andy
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 09:07:56 AM
I would update in this way.
3.5.9 - 3.6
3.6 to 3.7
3.7 to 3.8
3.8 to 3.9
3.9 to 4.3

I was testing just 3.9 to 4.3, this or next week I am planning to test 3.3 to 4.3 so will see how it works directly.
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 09:10:37 AM
Thanks. I was trying to find historic versions to try this, but I can't seem to find them linked anywhere?

Cheers

Andy
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 09:19:43 AM
They all should be at sourceforge
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 09:22:54 AM
Thanks - but sourceforge goes from 3.1 to 3.7 ?
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 09:29:04 AM
BTW a bug with the upgrade tool seems to be around:

Code: [Select]
$.getJSON("http://osclass.org/latest_version_v1.php?callback=?", function(data) {
                    if(data.version <= version) {
                        steps.innerHTML += '<?php echo osc_esc_js__('C

Quote
Blocked loading mixed active content "http://osclass.org/latest_version_v1.php?callback=jQuery18009303215151357456_1618298737381&_=1618298737482"jquery.min.js:2:84342

I'm on a https domain, so obviously its not happy with http:// being called. Any reason those don't use // as the protocol, so it would work with http or https?
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 09:52:55 AM
May be safer to go to http while upgrade.
It is very old version and in that time, ssl protocol was not so used and was expensive
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 10:03:02 AM
Even that doesn't work :( If I try and run the upgrade from the browser I get:

Quote
Loading failed for the <script> with source “http://osclass.org/latest_version_v1.php?callback=jQuery180006373056059176663_1618300898113&_=1618300898171”.

Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 10:04:28 AM
Can someone point me to a URL where I can find the older versions? I looked on Google, but iut came back with a lot of different URLs. I'm always dubious of downloading scripts from  URLs other than the original site, in case they are tampered with and have viruses / malware hidden inside them

Thanks!
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 10:42:14 AM
https://sourceforge.net/projects/osclass/files/
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 10:43:14 AM
Osclass.org domain is down, so this particular callwill never work... Didnt realized that
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 10:46:31 AM
https://sourceforge.net/projects/osclass/files/

Thanks- but that only goes up to 3.7.1, not 4.x ?

Osclass.org domain is down, so this particular callwill never work... Didnt realized that

Ya :(
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 10:48:41 AM
Here you should be able to find all releases made by osclass original.
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 10:49:56 AM
Hmm so where do I get the later versions?

3.7 to 3.8
3.8 to 3.9
3.9 to 4.3

I found a github repo / fork - is that it?

Cheers

Andy
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 11:28:41 AM
OK got it. I managed to find 3.8.1 online. I installed that. Then did an upgrade to the latest, and it worked perfectly this time :)

One issue I do have though: http://websouq.com/

If you select "arabic" as the language, most of the URLs are broken:

http://websouq.com//

Yet they are fine in English. Is there another tweak I need to do somewhere?

Thanks!

Andy
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 12:47:27 PM
Do you mean listings url? It should work fine
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 02:06:31 PM
Hi,

Its the actual category URLs. So for example:

https://websouq.com/vehicles/rvs-campers-caravans

But if you change the language to Arabic, it sends you to:

https://websouq.com//

I've had a look and can't see any settings for each language? (i.e one "nice" URL name for each language), unless I'm missing something?

Cheers

Andy
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 02:51:53 PM
Do you have names in arabic as well? Will test on dev server today.
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 03:20:35 PM
Yup - so an example would be:

مجتمع

Which in English is:

Community

Here is what they loop like in the admin CP:

(https://i.ibb.co/8dt3pvD/2021-04-13-at-14-18-05.png) (https://ibb.co/8dt3pvD)
(https://i.ibb.co/GV1VLZ9/Screenshot-2021-04-13-Categories-Web-Souq-Osclass.png) (https://ibb.co/GV1VLZ9)

Could it be that its only converting ascii chars into "permalinks" ? I know on another script I work with they change anything outside of a-z0-9_- to an _ , so on مجتمع it would convert into something no useful like ____ =) I wonder if something like that is happening here too?

Thanks!

Andy
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 03:58:52 PM
If your hosting does not support it, could be converted, but I think currently there is no such conversion by osclass, must check it
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 04:00:58 PM
I host the site on my own server, so can tweak PHP if needed :) Its just a standard php 7.2 install, with PHP FPM - so nothing fancy. Our server supports non-latin characters in URLs (it goes through nginx)
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 04:42:54 PM
@andrewnewby
I've just tested on our dev server and URLs are created properly for arrabic version as well.
You may try to plat with oc-includes/osclass/formatting.php if you think it is replaced by osclass.
Title: Re: Upgrade issues
Post by: andrewnewby on April 13, 2021, 04:54:11 PM
Odd. So out of interest, I just tried to modify a category. As soon as I modified, it, the URLs work properly!

https://websouq.com/%d9%84%d9%84%d8%a8%d9%8a%d8%b9/

I guess maybe something wasn't quite set right with the arabic in the DB, from the older version (it was a 2015 version I believe... so pretty old!)

Anyway, thanks for testing it out - we are all good now  8)
Title: Re: Upgrade issues
Post by: MB Themes on April 13, 2021, 05:02:35 PM
@andrewnewby
It's hard to say, I would not say something has changed, but I am glad it helped ;)