SOLVED templates & tags not working unless logged in

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
sunshinegypsy
Regular
Posts: 8
Joined: Mon Dec 21, 2009 8:16 pm

SOLVED templates & tags not working unless logged in

Post by sunshinegypsy »

I have 3 domains and I've got Serendipity installed on two of them, which used to have Wordpress. I've installed, erased, and reinstalled Serendipity multiple times in the process.

sunshinegypsy.com is in my main directory, and tsunshinelove.com is in a sub folder.

sunshinegypsy.com has more plugins but otherwise the installations are identical.

http://tsunshinelove.com shows up fine with no problems, but http://sunshinegypsy.com (some adult content, not explicit) will not load the template file nor go to tag links without being logged in.

I read the FAQ http://www.s9y.org/11.html#A24 file and my URL rewriting had already been set to disabled, but I figured I'd fiddle with it to see if that helped only to find out that now I can't change the permissions on my .htaccess files for some reason. Anybody have any clue what's going on here?

Template not loading unless logged in on primary domain. The source reveals different links to style sheets, even though the same template (Andreas09) is installed on both domains:

<link rel="stylesheet" type="text/css" href="http://sunshinegypsy.com/index.php?/plu ... emplate_12" />
<link rel="stylesheet" type="text/css" href="http://tsunshinelove.com/index.php?/serendipity.css" />

on clicking a tag from sunshinegypsy.com:

"You have to be logged in to view this page"

on trying to change my .htaccess files:

"FileOp Failure on: /home/sunshine/public_html/.htaccess: Operation not permitted"

"/home/sunshine/public_html/tsunshinelove.com/.htaccess chmod failed: Operation not permitted in /home/sunshine/public_html/tsunshinelove.com"
Last edited by sunshinegypsy on Thu Dec 24, 2009 8:59 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: HOST CHECKING templates & tags not working unless logged in

Post by garvinhicking »

Hi!

When you use s9y on multiuple domains, where you copy serendipity INSIDE another directory where s9y is allread installed in, it is VITAL that your $_SERVER['DOCUMENT_ROOT'] is set to the actual s9y path for each Domain VHost. It may not be that the document-root of your subdomain points to the same documentroot than the main domain.

This is the most common error for this. The only fix is to change your hosting so that DOCUMENTROOT is properly set, or you edit the serendipity_config.inc.php to manually fixate the $_SERVER['DOCUMENT_ROOT'] variable to the right path.

Funnily, that error message "You have to be logged on" is actually only implemented in Serendiipity to be shown when the Admin image selector is called, so I wouldn't know why its displayed on your site?"!

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
sunshinegypsy
Regular
Posts: 8
Joined: Mon Dec 21, 2009 8:16 pm

Re: HOST CHECKING templates & tags not working unless logged in

Post by sunshinegypsy »

Thank you for your response. I've forwarded it to my host, but I'm not sure that's exactly it.

For starters, the problem is on my first/original/home domain, not the subdomain.

I looked into the config files on both domains and the code looked like this on both:

if (@file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php')) {
$local_config = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php';

To install, I extracted serendipity-1.4.1.tar.gz directly into sunshinegypsy.com, which = public_html, and tsunshinelove.com, which = public_html/tsunshinelove.com

Well, actually I think I extracted it, then moved all the files up one level and deleted the empty Serendipity folder.
sunshinegypsy
Regular
Posts: 8
Joined: Mon Dec 21, 2009 8:16 pm

Re: HOST CHECKING templates & tags not working unless logged in

Post by sunshinegypsy »

One thing I find odd is that the view source shows different files for the stylesheet for each domain:

<link rel="stylesheet" type="text/css" href="http://sunshinegypsy.com/index.php?/plu ... te_default" />
<link rel="stylesheet" type="text/css" href="http://tsunshinelove.com/index.php?/serendipity.css" />

Where and how does this get changed? How do I get sunshinegypsy.com to pull the css file? My host tried to tell me that I don't have a css file, but serendipity.css.php is exactly where it's supposed to be in both domains, as far as I can tell.

Sorry if I'm not super technical - I'm doing the best I can to understand this.
sunshinegypsy
Regular
Posts: 8
Joined: Mon Dec 21, 2009 8:16 pm

Re: HOST CHECKING templates & tags not working unless logged in

Post by sunshinegypsy »

Okay, so I deleted 3 plugins and the problem of my template not loading unless logged in went away. The plugins were:

extended categories
sitemap
avatars

However, my tag links still lead to that "must be logged in to view this page" error. Oddly, the rss buttons work fine, but the tag links themselves do not.

http://sunshinegypsy.com/index.php?/plu ... /bad+ideas
-->You have to be logged in to view this page

http://sunshinegypsy.com/rss.php?serend ... =bad+ideas
-->rss tag feed loads
sunshinegypsy
Regular
Posts: 8
Joined: Mon Dec 21, 2009 8:16 pm

Re: HOST CHECKING templates & tags not working unless logged in

Post by sunshinegypsy »

Okay, I'm not sure what did it, but I finally got the tags fixed, too. It was either moving "Tagging of entries" up in the event list or changing the Taglink back and forth.
Post Reply