Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2006, 06:14 PM
New Pligger
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Javascript error on "vote"

I think I found my problem, w/ my URL...

if I use battellemedia.com it's fine, www.battellemedia.com has issues, not sure where I'm getting bumped out to www...

------

I've running B7.2, and am getting a JS error on when I try to "vote" for a story... In config.php I have: define('anonymous_vote', true);

and changed anonymous_vote = true; in xmlhttp.js in menealo, and cvote in xmlhttp.js

Code:
Error: uncaught exception: Permission denied to call method XMLHttpRequest.open
Wondering if this is reproducable? I'm using FF 1.5x on a Mac.

test site is: http://www.battellemedia.com/pligg/

Thanks,

--Jonathan

Last edited by jschreiber; 06-19-2006 at 06:26 PM.. Reason: oops, error is w/ my URL
Reply With Quote
  #2 (permalink)  
Old 09-09-2006, 02:47 PM
New Pligger
 
Join Date: Sep 2006
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
What's the fix for this??? Anyone know? This is messing me up huge... can you do something with .htaccess? jschreiber, I noticed your site is fixed... www.battellemedia.com redirects to battellemedia.com , how did you do that?

Thanks a bunch
Reply With Quote
  #3 (permalink)  
Old 09-09-2006, 02:59 PM
New Pligger
 
Join Date: Sep 2006
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
OK, I think I fixed it, at least for me.... make sure the Base URL in your config.php has the www prefix in it. That seems to fix things up for me.
Reply With Quote
  #4 (permalink)  
Old 09-13-2006, 01:07 PM
New Pligger
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
There's that part in config.php, yes... If you do want to consolidate your urls (which is good for SEO reasons), you'll need to add a few lines to your .htaccess and apache conf file for your whole site, check out:

http://no-www.org/faq.php
Reply With Quote
  #5 (permalink)  
Old 09-13-2006, 01:42 PM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
lets say a website is at

http://www.pligg.com/pligg
and the website tries to use xmlhttprequest to get data of a different website
http://www.evil.com/pligg
then firefox won't allow that, sort of a security feature. i think

http://www.captain.at/howto-ajax-per...ttprequest.php

just check you config file has the same url as the way users use it

like pixelpump said with the www.
Does this error come up when you access the website with or without a www.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #6 (permalink)  
Old 10-01-2006, 08:53 PM
New Pligger
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you jschreiber and savant for your help. That was my problem. I made an error in my config.php file, I changed and it worked.
Reply With Quote
  #7 (permalink)  
Old 10-01-2006, 09:25 PM
Casual Pligger
 
Join Date: Dec 2005
Posts: 32
Thanks: 0
Thanked 12 Times in 4 Posts
Wow,

I didnt know john battelle was using pligg on his blog...This may be one of the biggest endorsements for pligg by far...

for the uninitiated, he wrote the book on google and also is behing federatedmedia -- that provides ads to sites like Techcrunch, digg etc...
Reply With Quote
  #8 (permalink)  
Old 10-06-2006, 09:22 PM
New Pligger
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hi all, I have a problem with javascirpt too. I install Pligg RC2 in XP using wampserver (apache 2.0.56 and php 5.1.6). I follow readme install and everything gone well. The problem is when start using pligg, there's javascript error in everypage. When register new user, the button verify and create user can't submit. The error is syntax error at line 2 char 1. I don't know why.
Please help me solve this problem.
Reply With Quote
  #9 (permalink)  
Old 10-07-2006, 03:16 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
have you set the pligg base and base url to the right values.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #10 (permalink)  
Old 10-07-2006, 11:44 AM
New Pligger
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, I already set it. Here it is
$my_base_url = 'http://localhost';
$my_pligg_base = '/Pligg';
Is this right ???
When I register new User, (type username) the javascipt error was Object Excepted. The line error in html was
<input type="text" name="username" id="name" value="" onkeyup="enablebutton(this.form.checkbutton1, this.form.submit, this)" size="25" tabindex="1"/>
The problem is in enablebutton javascript function, is'n it.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
a lot of Javascript , I mean a looooooot !! neo2cold Suggestions 1 10-04-2008 08:48 PM
how to add javascript to templates? ivytony General Help 1 02-22-2008 07:40 PM
Might be time to think about better use of javascript jbowman General Help 1 07-20-2007 09:19 AM
AJAX and Javascript not working on Firefox 2 lcct83 Bug Report 5 04-02-2007 01:31 PM
Having a JavaScript problem ucopious General Help 0 07-24-2006 06:16 PM


Search Engine Friendly URLs by vBSEO 3.2.0