Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Webmaster mode not working - javascript error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-10-2003, 07:25 PM
 
nerd luv nerd luv is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: California, USA
Posts: 58
 

Default 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?
Reply With Quote
  #2  
Old 07-15-2003, 10:28 PM
 
seth_bartal seth_bartal is offline
 

Newbie
  
Join Date: Jun 2003
Posts: 9
 

Default

Did you ever get this figured out? I am having the same issue.
Reply With Quote
  #3  
Old 07-17-2003, 10:18 AM
 
Mad Mad is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Brooklyn, NY
Posts: 60
 

Default

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.
Reply With Quote
  #4  
Old 07-19-2003, 11:54 AM
 
nerd luv nerd luv is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: California, USA
Posts: 58
 

Default

No, I haven't had any luck fixing this. I can't believe no one has any advice or suggestions
Reply With Quote
  #5  
Old 08-19-2003, 06:17 PM
 
nerd luv nerd luv is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: California, USA
Posts: 58
 

Default

*bump* Webmaster mode still isn't working due to the JavaScript errors. Any ideas yet?
Reply With Quote
  #6  
Old 08-25-2003, 05:03 AM
 
puckett puckett is offline
 

Newbie
  
Join Date: Aug 2003
Posts: 1
 

Default

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.
Reply With Quote
  #7  
Old 08-25-2003, 05:10 AM
 
rodneyw rodneyw is offline
 

Senior Member
  
Join Date: Mar 2003
Posts: 162
 

Default

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}
Reply With Quote
  #8  
Old 08-25-2003, 12:10 PM
 
nerd luv nerd luv is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: California, USA
Posts: 58
 

Default

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
Thanks for the fix!
__________________
Always happy to Paypal over some money for X-Cart solutions. I need to get this store running! Help!
--Testing 3.5.8, heavily modified, Linux, Apache 1.3.31, PHP 4.3.4--
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:13 AM.

   

 
X-Cart forums © 2001-2020