vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > vBa Links Directory v3.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 12-04-2008, 11:23 AM
turbosatan turbosatan is offline
Member
 
Join Date: Jan 2008
Posts: 55
Default getting 404 errors

i am very concerned about this.

I tested fully before announcing my link directory and i can submit links with no problems from my pc at work and at home using ie 7 and firefox on both

the first person who tries to use the directory is getting 404 errors after clicking the submit a link button

also they are getting it sometimes when trying to choose the category and clicking submit

I have foudn the thread which details possible problems with hostgator hosting but would this not affect everyone and not just some people??

for instance i have always been able to submit a link. never had an issue yet someone else in the uk cannot at all.
Plz hlp
Reply With Quote
  #2  
Old 12-04-2008, 12:28 PM
turbosatan turbosatan is offline
Member
 
Join Date: Jan 2008
Posts: 55
Default

Jesus f@ing h christ

Quote:
please read:
We are currently testing our new chat system that will soon replace our current one through liveperson. A very small percentage of people will experience issues with the new system as a result of certain browser settings. Click here if you are unable to chat with us, and please tell the chat technician what happened.

We are connecting you to a representative of our 'technical support' department now...

Your chat id is 114000
(11:09:57 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 1 chat.
(11:10:10 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 1 chat.
(11:10:24 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 2 chats.
(11:10:38 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 2 chats.
(11:10:50 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 2 chats.
(11:11:03 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 2 chats.
(11:11:17 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 2 chats.
(11:11:30 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 2 chats.
(11:11:43 am) system: One moment, there are 0 people infront of you. 16 chat technicians are currently online taking 2 chats.
(11:11:45 am) shaun st: Has entered the chat.
(11:12:03 am) shaun st: What are the issues that you are having?
(11:12:07 am) simon: Hi i spoke to jess a while ago. I have an issue with my forum directory an explanation to a certain extent is here http://www.vbadvanced.com/forum/showthread.php?t=32801 the previous operator added me to some sort of whitelist for a rule which was causign the problems. Basically people get 403 and 404 errors when trying to either submit links or view them. It seems to affect ie mjore than anything else but i have tried everything now
(11:12:26 am) simon: The directory is here http://www.thetattooforum.com/tattoo_directory/
(11:13:13 am) shaun st: Where are you getting the errors at on your site
(11:13:16 am) shaun st: I am not seeing any
(11:13:50 am) simon: I cannot replicate them. However two moderators when trying to submit a new link and when trying to view one afterwards are both getting 404 errors
(11:14:10 am) simon: Which is kinda why i was concerned as i do not see the issue yet others do
(11:15:21 am) shaun st: Well i am not seeing it at all on the site.
(11:15:30 am) shaun st: I just tested it and it is working fine
(11:15:31 am) simon: Have you tried to submit a link?
(11:15:41 am) shaun st: I can not fix something when it does not look like anything is broken
(11:15:44 am) shaun st: Yes
(11:16:02 am) simon: As which user?
(11:16:46 am) simon: You cannot submit a link unless your logged in
(11:17:06 am) simon: And there are no new links waiting to be moderated so i would assume it failed then
(11:17:54 am) shaun st: I tried it from the root of the server and your site is working fine i did not see any issues with that at all.
(11:18:02 am) shaun st: I checked there are no mod security errors on that site
(11:18:18 am) simon: The feedback from the developer after he tried other things was it seems that any url that contains "http://"; within the vars (example: Showlink.php?do=goto&linkurl=http://google.com) is being rejected. For those having this problem, i would recommend contacting your host and let them know of the issue.
(11:18:53 am) simon: So is there anythign i can do to try and find otu what is causing the problem?
(11:19:37 am) simon: Sorry what did you try from the root of the server?
(11:20:08 am) shaun st: I tried posting to your site and it seems it is working
(11:20:23 am) simon: Who are you logged in as?
(11:21:21 am) shaun st: Root from ssh i had our support administrators look into that as well and there are no issues with that at all
(11:21:45 am) simon: You dont seem to be following what i am saying
(11:22:09 am) shaun st: I understand what you are saying exactly
(11:22:29 am) simon: You cannot have tried to submit a link into my link directory by logging in as root on a server
(11:22:44 am) simon: It has nothing to do with the permissions system in vbulletin
(11:22:54 am) shaun st: However the specific issue like this would only be a mod security error.
(11:23:00 am) shaun st: Not being able to post
(11:23:07 am) shaun st: I checked that there are no errors on the site
(11:23:18 am) shaun st: Or mod security errors
(11:23:27 am) simon: How do you know unless you try to do it? By logging in and submitting a link?
(11:23:40 am) simon: Which is when the error happens
(11:24:14 am) simon: You are saying you dont see the issue without even trying to replicate it
(11:25:15 am) shaun st: I did try to replicate it
(11:25:21 am) shaun st: Already but i am not able to
(11:25:29 am) simon: In which case i will try to explain it again
(11:25:39 am) simon: You need to be logged in to submit a link
(11:25:57 am) simon: Without being logged in tyhere is no way you can see what the error is or even try to replicate it
(11:26:00 am) shaun st: I tried it through the root of the server
(11:26:28 am) simon: So root access on the server gives you registered user rights in a vbulltin forum does it?
Reply With Quote
  #3  
Old 12-04-2008, 09:19 PM
PhilMcKrackon's Avatar
PhilMcKrackon PhilMcKrackon is offline
Senior Member
 
Join Date: Apr 2008
Posts: 523
Default

WOW - A very interesting conversation! I hope you get a better CSR next time. That one was clueless!
__________________
Jeep CJ Forums
Reply With Quote
  #4  
Old 12-05-2008, 05:21 AM
turbosatan turbosatan is offline
Member
 
Join Date: Jan 2008
Posts: 55
Default

does anyone have anything i can try here.
Reply With Quote
  #5  
Old 12-05-2008, 06:44 AM
CareyCrew CareyCrew is offline
Gone. vB is worthless now
 
Join Date: Sep 2007
Posts: 1,676
Default

I registered and can view all the links,have also added a test link and it was accepted.
__________________
Seen vB5 beta? No more vbulletin for me, done , gone,finished .
Reply With Quote
  #6  
Old 12-05-2008, 07:24 AM
turbosatan turbosatan is offline
Member
 
Join Date: Jan 2008
Posts: 55
Default

yes i can do the same using both my home pc and my work one in both IE and firefox

but so far three people who have tried to access the site are getting issues. getting 404 errors when they either click on the submit a link button or at other times when they choose a category and click go

i ahve verify link disabled btw
Reply With Quote
  #7  
Old 12-05-2008, 08:35 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

I'm seeing the error as soon as I click the link. Looks like it's due to this code being added into your <head> tags:
Code:
<base href="http://www.yorusite.com/" />
I'm not sure if that was added to your 'headinclude' template or if it's being added by another plugin/hack, but if you can find that and remove it, that will fix the issue.
Reply With Quote
  #8  
Old 12-05-2008, 10:35 AM
turbosatan turbosatan is offline
Member
 
Join Date: Jan 2008
Posts: 55
Default

any ideas on how to find out which plugin is causing this.

i have checked in my header and headerinclude templates there is nothign in there changing the baseref so one of the plugins must be causing it but i cannot see which one it might be.

There are quite a few plugins any of which might be adding it. Can you advise a quick way of searching them?
Reply With Quote
  #9  
Old 12-05-2008, 12:44 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

If it's not in those templates then my guess would be that it's in one of the plugins you're using to create the SEO URL's in your forum.
Reply With Quote
  #10  
Old 12-05-2008, 02:55 PM
turbosatan turbosatan is offline
Member
 
Join Date: Jan 2008
Posts: 55
Default

i think i have found the plugin in zoints which is adding the base ref code although this plugin is called archive_postheader there is no normal postheader

could you please advise if there is a way i can stop this from showing for the vblinks area?

also will the site / links area still work if i do that?

Code:
/** Zoints */
if ($vbulletin->options['zointsseo_archive_version'] == 'old')
{
	$output = @ob_get_contents();
	@ob_end_clean();
}

if ($vbulletin->options['zointsseo_on'])
{
	if ($vbulletin->options['zointsseo_rewrite_urls'] OR defined('zseo_sitemap'))
	{
		$base_href = $vbulletin->options['bburl'] . '/' . (defined('zseo_sitemap') ? 'sitemap' : 'archive') . '/' . iif($vbulletin->options['zointsseo_rewrite_urls'] != 2, 'index.php/');
		$output = str_replace('<head>', "<head>\n\t<base href=\"$base_href\" />", $output);
	}
	
	$globalignore = ($ignore = fetch_coventry('string')) ? "AND " . ($do == 'forum' ? 'thread.post' : 'post.') . "userid NOT IN ($ignore) " : '';
}

if ($vbulletin->options['zointsseo_on'] AND $do == 'index')
{
	$output .= zoints_archive_navigation(array());
	if ($vbulletin->options['forumhome'] == 'index')
	{
		$homeurl = $vbulletin->options['bburl'] . '/';
	}
	else
	{
		$homeurl = $vbulletin->options['bburl'] . '/' . $vbulletin->options['forumhome'] . '.php';
	}
	
	$output .= "<p class=\"largefont\">$vbphrase[view_full_version]: <a href=\"$homeurl\">" . $vbulletin->options['bbtitle'] . "</a></p>\n";
	$output .= zseo_archive_ad('i_forum1');
	
	$output .= "<div id=\"content\">\n";
	
	$columns = false;
	$i_right = zseo_archive_ad('i_right');
	$i_left = zseo_archive_ad('i_left');
	if (!empty($i_right) OR !empty($i_left))
	{
		$columns = true;
	}
	
	if ($columns)
	{
		$output .= '<table width="100%" cellpadding="1" cellspacing="1"><tr>';
		if (!empty($i_left))
		{
			$output .= $i_left;
		}
		$output .= '<td width="100%">';
	}
	$output .= zoints_archive_forum_list(-1,'',true, true);
	if ($columns)
	{
		$output .= '</td>';
		if (!empty($i_right))
		{
			$output .= '<td>' . $i_right . '</td>';
		}
		$output .= '</tr></table>';
	}
	$output .= "\n</div>\n";
	$output .= zseo_archive_ad('i_forum2');
	unset($do);
}

if ($vbulletin->options['zointsseo_on'] AND $do == 'forum')
{
	$p = max(intval($p), 1);
	$zointspage = 0;
	if ($vbulletin->options['zointsseo_archive_navigation'] AND !defined('Z_NAVIGATION'))
	{
		$numpages = ceil($foruminfo['threadcount'] / $vbulletin->options['archive_threadsperpage'] / $vbulletin->options['zointsseo_archive_pages_per_page']);
		for ($i = 1; $i <= $numpages; $i++)
		{
			if ($p <= $i * $vbulletin->options['zointsseo_archive_pages_per_page'])
			{
				$zointspage = $i;
				break;
			}
		}
	}
	$output .= zoints_archive_navigation($foruminfo, false, $zointspage);
	$output .= "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"" . $vbulletin->options['bburl'] . "/" . zseo_url_forum($foruminfo) . "\">$foruminfo[title_clean]</a></p>\n<hr />\n";

	# is forum
	if (defined('Z_NAVIGATION') AND $vbulletin->options['zointsseo_archive_navigation'])
	{
		
		$numpages = ceil($foruminfo['threadcount'] / $vbulletin->options['archive_threadsperpage']);
		$numforumpages = ceil($numpages / $vbulletin->options['zointsseo_archive_pages_per_page']);

		if ($p > $numforumpages)
		{
			$p = $numforumpages;
		}

		$start = ($p-1) * $vbulletin->options['zointsseo_archive_pages_per_page'] + 1;
		
		if ($numpages > 0)
		{
			$output .= zoints_improved_archive_page_navigation($start, $start + $vbulletin->options['zointsseo_archive_pages_per_page'] - 1, 0, $numpages, $foruminfo);
		}
	}
	else if ($foruminfo['cancontainthreads'])
	{
		if (!$vbulletin->options['zointsseo_archive_navigation'])
		{
			$output .= zoints_archive_page_navigation($foruminfo['threadcount'], $vbulletin->options['archive_threadsperpage'], $foruminfo);
		}

		$sqlstart = ($p-1) * $vbulletin->options['archive_threadsperpage'];
		$sqlend = $vbulletin->options['archive_threadsperpage'];

		$threads = $db->query_read("
			SELECT threadid, title, lastpost, replycount
			FROM " . TABLE_PREFIX . "thread AS thread
			WHERE forumid = $foruminfo[forumid]
				AND visible = 1
				AND open <> 10
			ORDER BY dateline " . iif($pda, 'DESC', 'ASC') . "
			LIMIT $sqlstart, $sqlend
		");

		$start = $sqlstart + 1;
		
		$f_left = zseo_archive_ad('f_left');
		$f_right = zseo_archive_ad('f_right');
		
		$columns = false;
		if (!empty($f_left) OR !empty($f_right))
		{
			$columns = true;
		}
		
		if ($columns)
		{
			$output .= '<table width="100%" cellpadding="1" cellspacing="1"><tr>';
			if (!empty($f_left))
			{
				$output .= '<td width="1%">' . $f_left . '</td>';
			}
			$output .= '<td width="100%">';
		}
		$output .= "<div id=\"content\">\n" . zseo_archive_ad('f_thread1') . "<ol start=\"$start\">\n";
		while ($thread = $db->fetch_array($threads))
		{
			if ($vbulletin->options['wordwrap'] != 0)
			{
				$thread['title'] = fetch_word_wrapped_string($thread['title']);
			}

			$thread['title'] = fetch_censored_text($thread['title']);

			($hook = vBulletinHook::fetch_hook('archive_forum_thread')) ? eval($hook) : false;

			if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
			{
				$output .= "\t<li>$thread[title]</li>\n";
			}
			else
			{
				if ($vbulletin->options['zointsseo_archive_sitemap'])
				{
					$output .= "\t<li><a href=\"" . zseo_url_thread($thread) . "\">$thread[title]</a></i></li>\n";
				}
				else
				{
					$output .= "\t<li><a href=\"" . zseo_url_thread($thread, 1, '', '', true) . "\">$thread[title]</a></i></li>\n";
				}
			}
		}
		$output .= "</ol>\n" . zseo_archive_ad('f_thread2') . "</div>\n";
		if ($columns)
		{
			$output .= '</td>';
			if (!empty($f_right))
			{
				$output .= '<td width="1%">' . $f_right . '</td>';
			}
			$output .= '</tr></table>';
		}

	}
	else
	{
		$output .= zseo_archive_ad('i_forum1');
		$output .= "<div id=\"content\">\n";
		$output .= zseo_archive_ad('i_right');
		$output .= zoints_archive_forum_list($f);
		$output .= "</div>\n";
		$output .= zseo_archive_ad('i_forum2');
	}
	unset($do);
}

if ($vbulletin->options['zointsseo_on'] AND $do == 'thread')
{
	if ($vbulletin->options['wordwrap'] != 0)
	{
		$threadinfo['title'] = fetch_word_wrapped_string($threadinfo['title']);
	}
	$threadinfo['title'] = fetch_censored_text($threadinfo['title']);

	$zointspage = 0;
	
	if ($vbulletin->options['zointsseo_archive_navigation'])
	{
		$tmp = $db->query_first("
			SELECT COUNT(*) + 1 threads
			FROM " . TABLE_PREFIX . "thread AS thread
			WHERE forumid = $foruminfo[forumid]
				AND visible = 1
				AND open <> 10
				AND dateline < $threadinfo[dateline]
		");
		$threadnum = $tmp['threads'];
		unset($tmp);
		
		# unfortunately threadcount doesn't exist in the forumcache
		$tmp = $db->query_first("SELECT threadcount FROM " . TABLE_PREFIX . "forum WHERE forumid = $foruminfo[forumid]");
		$threadcount = $tmp['threadcount'];
		unset($tmp);
		
		# determine which forum page this thread is on
		$thispage = 1;
		$forumpages = ceil($threadcount / $vbulletin->options['archive_threadsperpage']);
		for ($i = 1; $i <= $forumpages; $i++)
		{
			if ($threadnum <= $i * $vbulletin->options['archive_threadsperpage'])
			{
				$thispage = $i;
				break;
			}
		}
		$foruminfo['currentpage'] = $thispage;
		
		# determine which zoints page the forum page is on
		$numpages = ceil($threadcount / $vbulletin->options['archive_threadsperpage'] / $vbulletin->options['zointsseo_archive_pages_per_page']);
		$zointspage = 1;
		for ($i = 1; $i <= $numpages; $i++)
		{
			if ($thispage <= $i * $vbulletin->options['zointsseo_archive_pages_per_page'])
			{
				$zointspage = $i;
				break;
			}
		}
	}

	$output .= zoints_archive_navigation($foruminfo, $threadinfo, $zointspage);
	$output .= "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"" . $vbulletin->options['bburl'] . "/" . zseo_url_thread($threadinfo,1,'','',false,false,true) . "\">$threadinfo[title]</a></p>\n<hr />\n";

	$p = max(intval($p),1);
	
	$output .= zoints_archive_page_navigation($threadinfo['replycount'] + 1, $vbulletin->options['archive_postsperpage'], $threadinfo, true);
	
	$sqlstart = ($p-1) * $vbulletin->options['archive_postsperpage'];
	$sqlend = $vbulletin->options['archive_postsperpage'];
	
	$posts = $db->query_read("
		SELECT post.postid, post.pagetext, IFNULL( user.username , post.username ) AS username, dateline
		FROM " . TABLE_PREFIX . "post AS post
		LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = post.userid)
		WHERE threadid = $threadinfo[threadid]
			AND visible = 1
			$globalignore
		ORDER BY dateline ASC
		LIMIT $sqlstart, $sqlend
	");
	
	$i = 1;
	
	$t_left = zseo_archive_ad('t_left');
	$t_right = zseo_archive_ad('t_right');
	$columns = false;
	if (!empty($t_left) OR !empty($t_right))
	{
		$columns = true;
	}
	
	if ($columns)
	{
		$output .= '<table width="100%" cellpadding="1" cellspacing="1"><tr>';
		if (!empty($t_left))
		{
			$output .= $t_left;
		}
		$output .= '<td width="100%">';
	}
	
	$output .= zseo_archive_ad('t_post1');
	while ($post = $db->fetch_array($posts))
	{
		$post['pagetext'] = strip_bbcode($post['pagetext']);
		$post['postdate'] = vbdate($vbulletin->options['dateformat'], $post['dateline']);
		$post['posttime'] = vbdate($vbulletin->options['timeformat'], $post['dateline']);
		
		if ($vbulletin->options['wordwrap'] != 0)
		{
			$post['pagetext'] = fetch_word_wrapped_string($post['pagetext']);
		}
		
		$post['pagetext'] = fetch_censored_text($post['pagetext']);
		
		if ($i == 1 AND $vbulletin->options['zointsseo_meta_description'] == 2 AND $vbulletin->options['zointsseo_first_x_words'] > 0)
		{
			$description = str_replace('"', '', $post['pagetext']);
			$words = preg_split("#[\r\n\s]#", $description, $vbulletin->options['zointsseo_first_x_words'] + 1, PREG_SPLIT_NO_EMPTY);
			$description = '';
			$x = 0;
			foreach ($words as $word)
			{
				$description .= " $word";
				if (++$x == $vbulletin->options['zointsseo_first_x_words']) break;
			}
			$description = substr($description,1);
			
			$output = str_replace('{ZOINTS CUSTOM META DESCRIPTION}', $description, $output);
		}
		
		($hook = vBulletinHook::fetch_hook('archive_thread_post')) ? eval($hook) : false;
		
		$output .= "\n<div class=\"post\"><div class=\"posttop\"><div class=\"username\">$post[username]</div><div class=\"date\">$post[postdate], $post[posttime]</div></div>";
		$output .= "<div class=\"posttext\">" . nl2br(htmlspecialchars_uni($post['pagetext'])) . "</div></div><hr />\n\n";
		
		$output .= zseo_archive_ad('t_postx', $i);
		$i++;
	}
	$output .= zseo_archive_ad('t_post2');
	if ($columns)
	{
		$output .= '</td>';
		if (!empty($t_right))
		{
			$output .= $t_right;
		}
		$output .= "</tr></table>";
	}

	unset($do);
}
if ($vbulletin->options['zointsseo_archive_version'] == 'old')
{
	echo $output;
	unset($output);
}

/** / Zoints */
Reply With Quote
  #11  
Old 12-05-2008, 03:05 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Looks like you just need to change line 10 there to this:
Code:
if (($vbulletin->options['zointsseo_rewrite_urls'] OR defined('zseo_sitemap')) AND VBA_SCRIPT != 'links_directory')
Reply With Quote
  #12  
Old 12-05-2008, 03:25 PM
turbosatan turbosatan is offline
Member
 
Join Date: Jan 2008
Posts: 55
Default

i replaced that line with the new one but it doesnt seem to have changed anything. i will have to keep looking through the zoints stuff to see if i can find it anywhere else

EDIT

i found the following

Code:
if ($vbulletin->options['zointsseo_on'] AND $vbulletin->options['zointsseo_rewrite_urls'] AND VB_AREA == 'Forum' AND !defined('VBA_PORTAL'))
i added to make the following could youyjust confirm it is right

Code:
if ($vbulletin->options['zointsseo_on'] AND $vbulletin->options['zointsseo_rewrite_urls'] AND VB_AREA == 'Forum' AND !defined('VBA_PORTAL')AND VBA_SCRIPT != 'links_directory')

Last edited by turbosatan; 12-05-2008 at 03:35 PM.
Reply With Quote
  #13  
Old 12-06-2008, 12:24 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Should be fine, though I would add a space before AND here:

!defined('VBA_PORTAL')AND
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me errors v5etboyphc Troubleshooting & Problems 4 12-24-2006 04:22 AM
SQL Errors gyankow Troubleshooting & Problems 2 11-27-2006 11:29 AM
Errors lsgworldl Troubleshooting & Problems 4 12-01-2005 08:02 AM
SQL errors! CosmicBlend Troubleshooting / "How do I..." Questions 9 03-26-2005 11:34 PM
Array errors and SQL errors Richard-HH Troubleshooting / "How do I..." Questions 4 11-14-2004 01:49 PM


All times are GMT -4. The time now is 08:41 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.