Mods affected with jquery blocked and allowed

  • 3 Replies
  • 413 Views

0 Members and 1 Guest are viewing this topic.

Offline Anon

  • *
  • Fractal Fluff
  • *****
  • Posts: 354
« on: February 11, 2018, 03:43:55 AM »
Mods using jquery
ohyoutube.min.js:11:384
jquery.mousewheel-3.0.6.pack.js:13:1
jquery.fancybox.pack.js:45:1
jquery.fancybox-buttons.js:121:1
Also Uploader Mod

jquery referenced in index.php?
ReferenceError: jQuery is not defined index.php:1172:3

Syntax error? (shows up with jquery allowed or not)
SyntaxError: unterminated string literal index.php:1450:39

Edit: Dilber Theme results

See attached images...

Linkback: https://fractalforums.org/discuss-fractalforums/5/mods-affected-with-jquery-blocked-and-allowed/824/
« Last Edit: February 11, 2018, 04:31:16 AM by Anon, Reason: Dilber »

Offline 3DickUlus

  • *
  • 3f
  • ******
  • Posts: 1790
    • Digilantism
« Reply #1 on: February 11, 2018, 05:11:28 AM »
the "SyntaxError: unterminated string literal index.php:1450:39" is because somebody (SMF?) has dropped a quote char, usually from not keeping track when generating a line of text that has conditional parts in it, so a condition doesn't get met and php isn't generating the remainder of the text line, this can then lead to an immense number of errors in later parts of the code

what I see in my debugger says "don't bother trying to fix this you might just make it worse or drive yourself crazy"
Code: [Select]
Error in parsing value for ?background?.  Declaration dropped.  index.css:446:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:447:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:449:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:461:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:462:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:464:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:494:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:495:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:497:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:506:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:507:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:509:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:833:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:834:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:836:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:846:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:847:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:849:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:872:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:873:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:875:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:889:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:890:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:892:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:904:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:905:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:907:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:947:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:948:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:950:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:958:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:959:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:961:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:969:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:970:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:972:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:980:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:981:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:983:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:1345:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:1346:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:1348:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:1432:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:1433:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:1435:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:1445:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:1446:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:1448:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:1462:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:1463:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:1465:9
Error in parsing value for ?margin-top?.  Declaration dropped.  index.css:1760:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:3739:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:3740:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:3742:9
Error in parsing value for ?background?.  Declaration dropped.  index.css:3853:13
Error in parsing value for ?background?.  Declaration dropped.  index.css:3854:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:3856:9
Expected ?,? or ?{? but found ?/?.  Ruleset ignored due to bad selector.  index.css:4104:1
Unknown property ?-moz-border-radius?.  Declaration dropped.  index.css:4127:19
Unknown property ?-moz-border-radius?.  Declaration dropped.  index.css:4144:19
Unknown property ?-moz-border-radius?.  Declaration dropped.  index.css:4213:19
Unknown property ?-moz-border-radius?.  Declaration dropped.  index.css:4230:19
Expected ?none?, URL, or filter function but found ?alpha(?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:4240:8
Expected ?none?, URL, or filter function but found ?alpha(?.  Error in parsing value for ?filter?.  Declaration dropped.  index.css:4245:8
Selector expected.  Ruleset ignored due to bad selector.  index.css:4283
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:446:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:447:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:449:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:461:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:462:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:464:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:494:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:495:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:497:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:506:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:507:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:509:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:833:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:834:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:836:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:846:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:847:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:849:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:872:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:873:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:875:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:889:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:890:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:892:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:904:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:905:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:907:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:947:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:948:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:950:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:958:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:959:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:961:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:969:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:970:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:972:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:980:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:981:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:983:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:1345:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:1346:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:1348:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:1432:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:1433:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:1435:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:1445:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:1446:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:1448:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:1462:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:1463:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:1465:9
Error in parsing value for ?margin-top?.  Declaration dropped.  index_navy.css:1760:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:3737:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:3738:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:3740:9
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:3851:13
Error in parsing value for ?background?.  Declaration dropped.  index_navy.css:3852:13
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  index_navy.css:3854:9
Expected ?none?, URL, or filter function but found ?alpha(?.  Error in parsing value for ?filter?.  Declaration dropped.  oharaEmbed.css:28:9
Unknown property ?-moz-border-radius?.  Declaration dropped.  jquery.fancybox.css:33:22
Unknown property ?-moz-box-shadow?.  Declaration dropped.  jquery.fancybox.css:43:19
Unknown property ?-moz-border-radius?.  Declaration dropped.  jquery.fancybox.css:219:22
Unknown property ?-moz-box-shadow?.  Declaration dropped.  jquery.fancybox-buttons.css:26:19
Error in parsing value for ?background?.  Declaration dropped.  jquery.fancybox-buttons.css:32:13
Error in parsing value for ?background?.  Declaration dropped.  jquery.fancybox-buttons.css:33:13
Expected color but found ?top?.  Error in parsing value for ?background?.  Declaration dropped.  jquery.fancybox-buttons.css:34:29
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  jquery.fancybox-buttons.css:35:9
Unknown property ?-moz-border-radius?.  Declaration dropped.  facebox.css:14:20
Unknown property ?-moz-box-shadow?.  Declaration dropped.  facebox.css:17:17
Unknown property ?-moz-border-radius?.  Declaration dropped.  facebox.css:27:20
Expected ?none?, URL, or filter function but found ?alpha(?.  Error in parsing value for ?filter?.  Declaration dropped.  shoutbox.css:76:10
Unknown property ?-moz-opacity?.  Declaration dropped.  shoutbox.css:79:14
Expected ?none?, URL, or filter function but found ?alpha(?.  Error in parsing value for ?filter?.  Declaration dropped.  shoutbox.css:111:10
Unknown property ?-moz-opacity?.  Declaration dropped.  shoutbox.css:112:14
Expected ?none?, URL, or filter function but found ?alpha(?.  Error in parsing value for ?filter?.  Declaration dropped.  shoutbox.css:121:10
Unknown property ?-moz-opacity?.  Declaration dropped.  shoutbox.css:122:14
Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead[Learn More]  jquery-1.9.1.min.js:1
SyntaxError: unterminated string literal[Learn More]  ;topicseen:1207:39
Unknown property ?-moz-border-radius?.  Declaration dropped.  ;topicseen:1:476
Unknown property ?-moz-box-shadow?.  Declaration dropped.  ;topicseen:1:605
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  ;topicseen:1:680
Unknown property ?-moz-border-radius?.  Declaration dropped.  ;topicseen:3:428
Unknown property ?-moz-box-shadow?.  Declaration dropped.  ;topicseen:3:555
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  ;topicseen:3:630
Unknown property ?-moz-border-radius?.  Declaration dropped.  ;topicseen:21:172
Unknown property ?-moz-border-radius?.  Declaration dropped.  ;topicseen:22:154
Unknown property ?-moz-box-shadow?.  Declaration dropped.  ;topicseen:1:555
Expected ?none?, URL, or filter function but found ?progid?.  Error in parsing value for ?filter?.  Declaration dropped.  ;topicseen:1:628
Expected ?none?, URL, or filter function but found ?alpha(?.  Error in parsing value for ?filter?.  Declaration dropped.  ;topicseen:2:202
Expected ?none?, URL, or filter function but found ?alpha(?.  Error in parsing value for ?filter?.  Declaration dropped.  ;topicseen:4:177
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.  jquery-1.9.1.min.js:3:31293

sorry I'm not willing to put that much time into someone else's code, but I do know how to fix it...

1. use a local copy of jQuery
2. use the most recent version
3. as errors/warnings pop up fix them in the local copy
4. do this with all remotely sourced code
5. disallow remotely sourced code completely  ( and, if possible, java  :P )

I would like to move the entire site to an OpenSource base because at least the maintainers are the users and you don't have to pay for broken code and then pay to have it fixed (unless you can't find a fix or fix it yourself) but hey that's just me.

so please don't waste your time trying to debug deprecated versions of jQuery and friends cuz it will make your brain hurt, every bug we fix in this php codebase may make other "stock" mods complain or break

Offline Anon

  • *
  • Fractal Fluff
  • *****
  • Posts: 354
« Reply #2 on: February 11, 2018, 05:42:39 AM »
jquery has a mitigation procedure for deprecated code so it does not need to be fixed locally.

I am pointing out the mods that are affected by anyone disabling jquery via NoScript or uMatrix.

The SyntaxError may need a bug report filed with SMF if it is nontrivial.

I do not expect you to fix any code.
I am just happy you understand enough to change the correct settings to fix problems.  :yes:

I was surprised to see jquery referenced in index.php!?


Offline 3DickUlus

  • *
  • 3f
  • ******
  • Posts: 1790
    • Digilantism
« Reply #3 on: February 11, 2018, 06:24:58 AM »
yes, a good thing to mention.

and I should edit the statement "I would like to move the entire site to an OpenSource base" SMF is open source released under BSD 3-clause license but extras are extra.


xx
BMP images don't allowed

Started by hgjf2 on Forum Help And Support

2 Replies
92 Views
Last post September 06, 2020, 07:33:09 AM
by hgjf2
xx
Re: Mature Content in galleries allowed.

Started by Fraktalist on Board Rules and Guidelines

2 Replies
571 Views
Last post August 29, 2017, 06:14:11 PM
by Sockratease
xx
Mature Content In Galleries Allowed If Marked Properly

Started by Sockratease on Board Rules and Guidelines

2 Replies
958 Views
Last post September 17, 2017, 10:48:29 AM
by Sockratease
clip
Info Center - Recent Gallery Activity mods

Started by Anon on Discuss Fractalforums

15 Replies
1074 Views
Last post February 06, 2018, 02:36:01 AM
by 3DickUlus