X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Webmaster mode not working - javascript error (https://forum.x-cart.com/showthread.php?t=3555)

nerd luv 07-10-2003 07:25 PM

Webmaster mode not working - javascript error
 
I can't imagine what I would have changed that would affect webmaster mode, but all of a sudden it is NOT working. There's these errors:

Line 1
Char 1
Error: Object expected
Code: 0

Line 92
Char 1
Error: Object expected
Code: 0

Line 112
Char 1
Error: Object expected
Code: 0

on page customer/home.php

Does this sound familiar to anyone?

seth_bartal 07-15-2003 10:28 PM

Did you ever get this figured out? I am having the same issue.

Mad 07-17-2003 10:18 AM

Just wanted to sya that I get these javascript errors too sometimes. That's the thing, sometimes I get them, and because of that I don't get the debug popup window, and then soemtimes I have no problem what-so-ever. It seems to be pretty random. Guess that's what you get for not using a stable build. ;)

nerd luv 07-19-2003 11:54 AM

No, I haven't had any luck fixing this. I can't believe no one has any advice or suggestions :(

nerd luv 08-19-2003 06:17 PM

*bump* Webmaster mode still isn't working due to the JavaScript errors. Any ideas yet? :?:

puckett 08-25-2003 05:03 AM

It has not worked for me since installing X-Cart. The X-Cart people even got my password to go in and fix it (twice), but it's still not working.

rodneyw 08-25-2003 05:10 AM

What version are you running? I had the same problem using version 3.4.4

I had modified my meta.tpl to using a FunkyDunk's Meta Control Mod. My fix is on this page at the bottom.

http://forum.x-cart.com/viewtopic.php?t=3703&postdays=0&postorder=asc&star t=15


Here is where I posted my intitial problem:
http://forum.x-cart.com/viewtopic.php?t=5492

OF COURSE this is the modified version of the meta.tpl file that includes the meta tag mod info.

the part that operates webmaster mode is this:

Code:

{if $webmaster_mode eq "editor"}
{if ($usertype eq "P" or $usertype eq "A") and $login}
<script>var store_language = "{$current_language}"</script>
{else}
<script>var store_language = "{$store_language}"</script>
{/if}
{if $user_agent eq "ns"}
<script src="{$SkinDir}/editorns.js"></script>
{else}
<script src="{$SkinDir}/editor.js"></script>
{/if}
{/if}


nerd luv 08-25-2003 12:10 PM

rodneyw, you're a life saver! I also used the funkydunk meta tag mod and that seems to have been the problem. I inserted your edited code and I can use Webmaster Mode again :D
Thanks for the fix!


All times are GMT -8. The time now is 09:49 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.