1
SMEDrieben
2.5.6 and default admin color
  • 2013/5/12 19:00

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I have a strange issue in Xoops 2.5.6 under Wamp 2.2 (apache 2.2.22, php 5.3.13, 5.5.24, Windows 7, 64 bit).

After upgrading the default admin seemed to be normal: I prefer the silver color. After a few days, the admin color turned black in Chrome and Orange in MSIE. Clicking the color buttons in the admin doesn't change anything. So I cannot switch colors !

I removed the cache and cookies of the browser: no change. Removing Xoops-cache: no effect.

Any idea ? A Xoops 2.5.6 bug ? Problem with rights ? Cache ?

In 2.5.2 I had a similar problem. Then it was due to a bug:

https://xoops.org/modules/newbb/viewtopic.php?post_id=341485

However, this bug is corrected in 2.5.6

Any ideas ?

SMEDrieben

2
SMEDrieben
Re: 2.5.6: admin color doesn't change: jquery problem ?
  • 2013/5/13 17:50

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I analyzed this problem:

- using jquery.js 1.8.3 (included in Xoops 2.5.6) the "xoadmstyle-cookie" is not stored in Chrome. After an upgrade, initially the old 2.5.5 cookie is used. As soon as it needs an upgrade, no new xoadmstyle cookie is stored.

- I took the old jquery.js (1.7.2) from 2.5.5 and copied it to xoops_lib/Frameworks/jquery/ folder: changed the date of this file (newer then 1.8.3) and did a refresh of the admin: thereafter, I could switch from black to silver and orange. No problem.

- back to jquery.js 1.8.3 (newer date than the 1.7.2 file) and deleting the xoadmstyle-cookie, admin refresh: color change of the admin isn't possible anymore.

I think there is a problem with the jquery.js 1.8.3 and the stylswitch.js of the default admin theme.

SMEDrieben

3
SMEDrieben
Re: 2.5.6: admin color doesn't change: jquery problem ?
  • 2013/5/13 19:01

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


In Chrome, there is a message that disappears very soon. it looks like:

Uncaught TypeErrorcannot read property 'textContent' of null


I'm not a programmer. No idea what it means.

SMEDrieben

4
Mamba
Re: 2.5.6: admin color doesn't change: jquery problem ?
  • 2013/5/13 21:54

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I looked into the debugger, and the error was

Quote:
SCRIPT5022: Syntax error, unrecognized expression: link[@rel*=style][title]

If I remove the "@" sign in line 35 of

/modules/system/themes/default/js/styleswitch.js

Quote:
$('link[@rel*=style][title]').each(function(i)

then it works for me. Maybe it is caused by jQuery changes in 1.8.3

But can you remove it in your code, and test it to see if it works for you? Clear cache too.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

5
SMEDrieben
Re: 2.5.6: admin color doesn't change: jquery problem ?
  • 2013/5/15 17:16

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


Thanks ! Problem solved !

SMEDrieben

Login

Who's Online

432 user(s) are online (282 user(s) are browsing Support Forums)


Members: 0


Guests: 432


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits