Osclass forums

Development => Development => Topic started by: aviation on February 05, 2019, 05:42:16 am

Title: category selection is not allowed
Post by: aviation on February 05, 2019, 05:42:16 am
suddenly i am having an issue for selection of categories and i cant see the picture uploading .
please help me on fixing the errors as my visitor keeping asking me.
MY OSCLASS VERSION 3.8
regards
WEB:sellbourne . com
Title: Re: category selection is not allowed
Post by: calinbehtuk on February 05, 2019, 11:43:38 am
Activate osclass debug to see if you have any errors
https://doc.osclass.org/Debug_PHP_errors

Check in Listings=> Settings=> Optional fields =>Attach images   see if that checkbox is checked
Title: Re: category selection is not allowed
Post by: aviation on February 05, 2019, 12:21:13 pm
I checked it's all checked
I can't see category selection as well
Title: Re: category selection is not allowed
Post by: calinbehtuk on February 05, 2019, 07:04:49 pm
You verified to see if you have any PHP errors?
Title: Re: category selection is not allowed
Post by: aviation on February 05, 2019, 07:09:02 pm
I don't know how to do it.
is there any other method?
Title: Re: category selection is not allowed
Post by: calinbehtuk on February 05, 2019, 07:12:57 pm
No is no other method to see if you have any php errors. You need to check from where this issue is coming.

Here you have an example of how to activate debug, but if you don't know what you are doing is better to don't do this.
https://www.youtube.com/watch?v=zmSSJs3hfVA

Make a backup of your site before you do any changes, just in case you do something wrong.
Title: Re: category selection is not allowed
Post by: aviation on February 05, 2019, 07:14:42 pm
I ll try and come back again here for sure.
Title: Re: category selection is not allowed
Post by: calinbehtuk on February 05, 2019, 07:16:15 pm
You have an issue but your issue is coming from where?
You made changes on your site, install a plugin, make an osclass update?
Your category selection and image uploading were working in the past?
A site will not break without any intervention.
Title: Re: category selection is not allowed
Post by: aviation on February 05, 2019, 07:18:37 pm
 they all working before.no change I've done up to today.when I checked,I couldn't see category selection and picture uploading for publishing ad:(
Title: Re: category selection is not allowed
Post by: dev101 on February 05, 2019, 11:01:14 pm
Disable CF Rocket Loader. You have a lot of javascript errors.
Also, remove minify plugin if you have it installed / enabled.
Title: Re: category selection is not allowed
Post by: aviation on February 06, 2019, 01:08:01 am
I done all but it didn't help:(
still categories not choosable,and pics not uploadable
Title: Re: category selection is not allowed
Post by: dev101 on February 06, 2019, 01:52:24 am
Nope, you haven't. Your bootstrap js dependency is still broken.
Title: Re: category selection is not allowed
Post by: aviation on February 06, 2019, 01:58:01 am
hmm.i ll check again.i disabled from CloudFlare panel:(
Title: Re: category selection is not allowed
Post by: fog on February 06, 2019, 01:58:58 am
I done all but it didn't help:(
still categories not choosable,and pics not uploadable

Sorry tell you, but you not yet done all. A long path of work to fix them. I hope you have all backups with your custom versions of your own theme since beginning of first version (changed).
Currently, you have a lot of JS errors on your theme.
These errors freeze other JS functions from osclass script.
For other hand, your theme with these all errors, your domain is penalized on google too.
For big adventures, the best and favorite tool is: backup, backup, backup... to save all independent versions, to what you did  on your custom theme. Or, will be a great frustrating headache to try fix all without old backups.

Why losting a lot of time with it to have JS errors? Is the same to think: "what matters is if all of funtionalities of theme are working, and the rest of errors is relative, or I don't care about it . I just want this working".

I hope you don't think like that, or like I said: why losting a lot of time with it to get errors in the end, and no to know how to fix all them? (backup, backup, backup... or can be very to late with all time spent). Better you start from scratch and save each version with a new functionallity, making sure no exist any error? Maybe you will save time correctly now, do the things like that.

I'm just trying to help you through how to get things right if you do not have backups. Or, go back on your backup versions to be easier for you fix something.

Regards
Title: Re: category selection is not allowed
Post by: aviation on February 06, 2019, 02:04:25 am
ok.i ll follow your sayings:)
Title: Re: category selection is not allowed
Post by: dev101 on February 06, 2019, 02:17:32 am
It's not a long path, just disable that ancient buggy plugin and it will start working again.
Title: Re: category selection is not allowed
Post by: aviation on February 06, 2019, 02:22:19 am
thanks God🙏 it's working now.
thanks everyone who helped me out on that:)
Title: Re: category selection is not allowed
Post by: fog on February 06, 2019, 02:37:53 am
It's not a long path, just disable that ancient buggy plugin and it will start working again.

Sure, but is not only these errors he have on own theme. Anyway, mostly of these errors was of that plugin, I can see that now. I cannot understand why that plugin was not removed yet from somethere to download.

Regards
Title: Re: category selection is not allowed
Post by: dev101 on February 06, 2019, 02:49:28 am
The only remaining error left is mixed google font content (http instead https, a known minor bug in OW theme), I don't see any js errors left.

Yes, that plugin should be definitely removed, it causes more troubles than anything else.
Title: Re: category selection is not allowed
Post by: aviation on February 06, 2019, 02:51:05 am
how can it s fixed?
Title: Re: category selection is not allowed
Post by: dev101 on February 06, 2019, 02:54:42 am
I think it's already answered in other topics here, just search a little, it's not complicated.
Title: Re: category selection is not allowed
Post by: fog on February 06, 2019, 03:06:23 am
The only remaining error left is mixed google font content (http instead https, a known minor bug in OW theme), I don't see any js errors left.

Yes, that plugin should be definitely removed, it causes more troubles than anything else.

I see on search results page, when I click o button search to all categories:

(http://www.cmd.com.pt/images/search-js-errors.png)
Title: Re: category selection is not allowed
Post by: dev101 on February 06, 2019, 03:20:51 am
On my end in latest Chrome & Edge only font error is listed, other warnings are not related to the theme/plugins, don't see TypeError one, possibly come from some external 'widgets' he uses. FB widget error is not critical, probably obsolete api, not sure about other tracking and ads stuff.
Title: Re: category selection is not allowed
Post by: fog on February 06, 2019, 03:32:32 am
I checked some times, and with refresh (F5) with console opened, the first time I did, appeared most more, but after long time after post here, just few errors appears. Maybe he already know how disable part of that code to cause the conflict.

Regards
Title: Re: category selection is not allowed
Post by: fog on February 06, 2019, 03:46:08 am
Yes, is that. On homepage choose "Industries" main category with console opened.
On search results when page is totally loaded, press F5.

Sometimes happears a lot of JS errors. If these all errors not happears to you, repeat de process starting again from homepage. Hope it works to your side.

Well, I cannot do anything with that. My advice was gived to him, backups versions help to roll back, if needed.

Regards
Title: Re: category selection is not allowed
Post by: dev101 on February 06, 2019, 11:13:13 am
No, I still don't see them in Chrome, multiple refresh. It's possible they are browser specific.
Title: Re: category selection is not allowed
Post by: fog on February 06, 2019, 05:46:10 pm
No, I still don't see them in Chrome, multiple refresh. It's possible they are browser specific.

I saw with firefox. But now with chrome that browser display much more errors (44), and no needed any refresh. I did my search with "industries" main category, and USA country. Is possible he use JS to display something related with external ads, like you mentioned before.

(http://cmd.com.pt/images/chrome-console.jpg)