vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Getting "Access Denied" on Today's Posts and What's New? (https://vborg.vbsupport.ru/showthread.php?t=287352)

TamiTaylor 09-01-2012 09:46 PM

Getting "Access Denied" on Today's Posts and What's New?
 
I'm getting "Access Denied" on Today's Posts and What's New?

Other report links or tabs seem ok but those two result in a screen that is entirely white with just the words "Access Denied." on them.

I am trying to search the forums for help but not having luck with this issue. Any help is appreciated.

site: http://creativepassionclasses.com/forums/

kh99 09-01-2012 10:20 PM

It seems to be your search.php script that's causing that error, but to be honest I don't know exactly what causes that. Maybe look at the file permissions on search.php?

ForceHSS 09-02-2012 02:28 AM

looks like a custom hook

TamiTaylor 09-04-2012 01:39 PM

do I have any recourse to fix it? obviously reinstalling would but is there a way to reinstall without losing any posts/user info? Can i just recopy the search.php ?

ForceHSS 09-04-2012 01:45 PM

Support ticket let vb fix it would be ur best bet

kh99 09-04-2012 02:39 PM

...or contact your host and ask them about it. It looks like something that's coming from somewhere other than vbulletin.

TamiTaylor 09-05-2012 12:33 PM

Thanks. vBulletin confirmed it was a server issue, but hostgator is saying it's a software issue. I'm submitting a ticket with hostgator now in chat they said it could be a file permission issue but I have no idea what file would be the bugger. Is there a list of what files should have what permissions or?

kh99 09-05-2012 12:53 PM

I'd check search.php.

TamiTaylor 09-05-2012 02:07 PM

that's a 644 like the rest of the search files. I got this from my server help ticket:


Quote:

When running the search.php from command line, it simply gives an 'Access denied.' message:

root@cre [/home/cp0774/public_html/forums]# php search.php
Access denied.

Using strace to follow the system calls that are made, it seems that the last file opened is forums/vb/search/core.php:

open("/home/cp0774/public_html/forums/vb/search/core.php", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=17802, ...}) = 0
open("/home/cp0774/public_html/forums/vb/search/core.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=17802, ...}) = 0

And the first line in this file is:

root@cre [/home/cp0774/public_html/forums]# head -1 vb/search/core.php
<?php if (!defined('VB_ENTRY')) die('Access denied.');

This is where the error is coming from. Unfortunately, we aren't familiar enough with vbulletin to know why VB_ENTRY is not defined, or where it should be defined. That's something that the developers will need to help you with, however, you know where the problem is, just not what the problem is, and that should go a long way towards getting this resolved.
Does this help? I'm so sorry I just do not understand. Thank you for all of the help.

Lynne 09-05-2012 02:55 PM

What version of PHP are you using? And what is showing up in your error_logs (if you don't know where they are, ask your host)?

This may help? https://www.vbulletin.com/forum/show...s-indicated%29

TamiTaylor 09-05-2012 08:27 PM

Thanks Lynne!

betterthanyours 09-06-2012 07:17 AM

You might want to ask the host to check mod_security logs. I came across this before and if I remember correctly, mod_security was tripped too many queries or searches or something.

TamiTaylor 09-06-2012 08:21 PM

Here's the response from my server:

There is actually no error produced in the logs related to this. Here is a sample access:

[06/Sep/2012:09:32:03 -0700] "GET /forums/search.php?do=getdaily&contenttype=vBForum_Post HTTP/1.1" 200 14 "http://creativepassionclasses.com/forums/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) (dbLJyC15qmJHHYNkZdRLuzxZA0x001HEUY/kyz1O+pI=) Gecko/20100101 Firefox/6.0.2"

Your server is currently utilizing PHP 5.2.17:

PHP 5.2.17 (cgi-fcgi) (built: Nov 1 2011 22:58:38)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.9, Copyright (c) 2002-2011, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

kh99 09-07-2012 01:52 PM

Did you make any changes to your site before this started?

snakes1100 09-07-2012 04:13 PM

Quote:

Originally Posted by TamiTaylor (Post 2363204)
Here's the response from my server:


There is actually no error produced in the logs related to this. Here is a sample access:

[06/Sep/2012:09:32:03 -0700] "GET /forums/search.php?do=getdaily&contenttype=vBForum_Post HTTP/1.1" 200 14 "http://creativepassionclasses.com/forums/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) (dbLJyC15qmJHHYNkZdRLuzxZA0x001HEUY/kyz1O+pI=) Gecko/20100101 Firefox/6.0.2"

Your server is currently utilizing PHP 5.2.17:

PHP 5.2.17 (cgi-fcgi) (built: Nov 1 2011 22:58:38)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.9, Copyright (c) 2002-2011, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies


Tami
1. cd to the dir that the file is in via ssh cmd line
2. issue this cmd
3. lsattr search.php

Whats the results?

TamiTaylor 09-08-2012 06:10 PM

kh99 - the only changes I made were when I had an issue with my own admin account. I accidently made me a registered user. So i went into myphpadmin and changed myself back. that's all.

snakes1100 -
I'm sorry but I dont understand those directions. I have a very limited knowledge of this coding.

I really appreciate everyone helping. I did realize I have other Access Denied issues, I can not make threads sticky either (I hadn't tried before today) when I do I get the same Access Denied error. So I'm assuming it's more than just a search issue?

--------------- Added [DATE]1347144952[/DATE] at [TIME]1347144952[/TIME] ---------------

betterthanyours - I heard back from hostgator and no mod_security errors either.

--------------- Added [DATE]1347145068[/DATE] at [TIME]1347145068[/TIME] ---------------

Would reinstalling do anything? Will I lose history?

Lynne 09-08-2012 11:48 PM

So the host says no mod_security at all (there is also mod_security2)? How about suhosin?

snakes1100 09-08-2012 11:53 PM

Suhosin wont cause a msg to be printed out.

Lynne 09-09-2012 02:24 AM

Quote:

Originally Posted by snakes1100 (Post 2363869)
Suhosin wont cause a msg to be printed out.

I didn't know that. Thanks for letting me know. :)

snakes1100 09-09-2012 02:48 AM

As well by default, suhosin errrors go to the syslog/message log, not nginx/apache etc...

TamiTaylor 09-09-2012 06:10 AM

Thanks to Snakes1100 this is fixed.

Lynne 09-09-2012 02:56 PM

What was the problem/solution?

TamiTaylor 09-09-2012 10:11 PM

the problem was me I didn't pay attention to version numbers so I had a file that was for the update and i was still running a previous version. - yes i was properly scolded.
:)

Lynne 09-10-2012 01:02 AM

Well, you learned a lesson that most of us learn the hard way. :)


All times are GMT. The time now is 04:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01193 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete