Support Forums - Classified Ads Script Osclass
General osclass questions => General discussion => Topic started 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
-
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.
-
Thanks. I was trying to find historic versions to try this, but I can't seem to find them linked anywhere?
Cheers
Andy
-
They all should be at sourceforge
-
Thanks - but sourceforge goes from 3.1 to 3.7 ?
-
BTW a bug with the upgrade tool seems to be around:
$.getJSON("http://osclass.org/latest_version_v1.php?callback=?", function(data) {
if(data.version <= version) {
steps.innerHTML += '<?php echo osc_esc_js( __('C
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?
-
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
-
Even that doesn't work :( If I try and run the upgrade from the browser I get:
Loading failed for the <script> with source “http://osclass.org/latest_version_v1.php?callback=jQuery180006373056059176663_1618300898113&_=1618300898171”.
-
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!
-
https://sourceforge.net/projects/osclass/files/
-
Osclass.org domain is down, so this particular callwill never work... Didnt realized that
-
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 :(
-
Here you should be able to find all releases made by osclass original.
-
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
-
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
-
Do you mean listings url? It should work fine
-
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
-
Do you have names in arabic as well? Will test on dev server today.
-
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
-
If your hosting does not support it, could be converted, but I think currently there is no such conversion by osclass, must check it
-
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)
-
@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.
-
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)
-
@andrewnewby
It's hard to say, I would not say something has changed, but I am glad it helped ;)