The templates_c directory.

Having trouble installing serendipity?
Post Reply
BooBooSpooki

The templates_c directory.

Post by BooBooSpooki »

Heya, my first post - and it's a troubleshooter ! :oops:

When I extract the Serendipity archive, the directories that created are:
  • bundled-libs
    CVS
    deployment
    docs
    htmlarea
    include
    lang
    plugins
The templates_c directory is not created. Can I create my own, empty folder ? Or is Serendipity's template_c folder populated with data from the beginning ?

P.s. This has happened with all the releases I've tried. Maybe it's WinRAR ?

Danke schön and all that !
BooBooSpooki

Well, an alternative.

Post by BooBooSpooki »

When I install version 0.7, though, it does extract with the templates directory in place. I'm going to assume that the version 0.8 archives I downloaded are corrupted ?

However, my initial problem was that I'd like bloggers' posts to be organizes according to user -and- category.

That is built-into version 0.8, that I cannot get to install (see the above post).

There -does- exist a plug-in for showing blogs by a specific user, but the server @ cvs.sourceforce.net has been unresponsive for a few days now.

Does -anyone- have a copy of that plug-in on the web ? Google returned only three results, one of which is the unresponsive link.

I'm REALLY keen to use Serendipity, else I'd not have spent the last week working on this ^^
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: The templates_c directory.

Post by garvinhicking »

What snapshot did you download? The templates_c directory is part of my snapshot...

In your list, "templates" is also not existant - looks like you have a bad snapshot?

Anyways, if templates_c does not exist, you can simply manually create the empty directory.

Regards und all das,
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/
Guest

Weiter und weiter ... ^^

Post by Guest »

Ah, also:

Releases

1.0.8-beta2
* No templates or templates_c folder

2.0.7
* There is a templates folder. The system does -not- check for a templates_c folder upon installation.

Snapshots

3.s9y_2005-03-14 ( 13:38 )
* No templates or templates_c folder

================================================

Creating a templates_c folder:

In case 1 and 3, creating a templates_c folder, I was allowed to go on with the installation.

Aber - I have the same problem with cases 1 and 3 than Can't install...but no errors show.

I'll use your advice in that thread to play around with cases 1 and 3

================================================

Case 2, or finding the View by User Plugin

Does anyone have an idea where to get this plugin other than on cvs.sourceforge.net ?

Otherwise, I'll wait 'till their apparent server problems are rectified.

================================================

Alles Gute zum Geburtstag !
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Weiter und weiter ... ^^

Post by garvinhicking »

First off, the 0.7 Version does not need or require a 'templates_c' directory. This is only needed since 0.8!

I've just unpacked the http://www.s9y.org/snapshots/s9y_200503151337.tar.gz snapshot file - the 'templates_c' directory is there properly. I extracted it with "tar -xvzf s9y_200503151337.tar.gz". Check your archiving utility, it seems faulty then :)

Apart from that, try http://www.netmirror.org/mirror/serendipity/ - there you can find a .tgz bundle with all additional_plugins.

Regards,
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/
BooBooSpooki_

Post by BooBooSpooki_ »

Werden Sie begrüßt !

Thank you for the help so far - it's really appreciated !

Initial problem
=========

Figured out that my problem was using WinRAR as opposed to PowerArchiver to extract the latest snapshots. So everything extracts correctly now.

Let me explain my problem with the installation.
===============================

[step]=2a
This is, of course, the first step of the simple installation. I configure the forms appropriately, and click "complete installation".

[step]=3
Here the whole page is simply reloaded and repopulated with default data.

So, between step 2a and step 3, what -is- supposed to happen ? That might explain my problem.

================================================
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

If you get a form on page 3, look out for any error message above or below the form. Usually page 3 installs everything, and if it jumps back to page 2, there is something wrong.

Usually it's either directory/file permissions or an access problem to the database.

Can you mail me (privately, serendipity *at* garv -dott in) the URL to your blog? I could try some things which may help.

Regards,
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/
BooBooSpooki_

Post by BooBooSpooki_ »

Bin wieder da !

I sent you the email, but I'm sure that the URL doesn't need to be private - we'll have up to 300 people using the system when it's installed.

The url is http://www -dot- up .dot. ac ~dot~ za / blogger / serendipity.

The [step]=3 page doesn't list any errors when it goes on to [step]=3.

As far as directory / file permissions is concerned, I'm going to try to CHMOD everything to 777.

Danke wieder, wie immer !
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

This is really strange.

Please open your include/admin/installer.inc.php file. Find this code at line 42:

Code: Select all

    if ( is_array($errors = serendipity_checkInstallation()) ) {
        foreach ( $errors as  $error ) {
            echo '<div class="serendipityAdminMsgError">'. $error .'</div>';
        }

        $from = $_POST;
        /* Back to configuration, user did something wrong */
        $serendipity['GET']['step'] = $serendipity['POST']['step'];
    } else {
        /* We're good, move to install process */
        $serendipity['GET']['step'] = 3;
    }
please change this to:

Code: Select all

    echo 'INSTALLER DIAGNOSIS INIT...<br />';
    if ( is_array($errors = serendipity_checkInstallation()) ) {
        echo 'INSTALLER ERROR!<br />';
        print_r($errors);
        foreach ( $errors as  $error ) {
            echo '<div class="serendipityAdminMsgError">'. $error .'</div>';
        }
        echo 'GOING BACK TO PREVIOUS STEP!<br />';

        $from = $_POST;
        /* Back to configuration, user did something wrong */
        $serendipity['GET']['step'] = $serendipity['POST']['step'];
    } else {
        echo 'INSTALLER SUCCESSFUL!<br />';
        /* We're good, move to install process */
        $serendipity['GET']['step'] = 3;
    }
And then tell me your output. The funny thing is that you should get an output if you enter invalid installer data for the database like this:

Code: Select all

The database you specified does not exist.
The mySQL error was: Access denied for user ''@'localhost' to database 'serendipity'
Could it be that you extracted the -beta4 tarball incorrectly or without paths? Please tell me the first line of your lang/serendipity_lang_en.inc.php file...

Regards,
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/
BooBooSpooki
Posts: 1
Joined: Tue Mar 15, 2005 1:04 pm

Post by BooBooSpooki »

admin_installer.inc.php

I made the changes as you suggested, yet I still don't get -any- other output except for the same page with [step]=3.

This is the same for the simple and the advanced installation. Also, nothing new was added to the HTML output when I view the source.

This makes me think that the PHP doesn't even -get- there... :shock:

Also, if I don't enter -any- valid data at all, I get no error messages.

lang/serendipity_lang_en.inc.php

The first four lines of this file are :

Code: Select all

<?php # $Id: serendipity_lang_en.inc.php,v 1.146 2005/03/13 14:14:37 garvinhicking Exp $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved.  See LICENSE file for licensing details

@define('LANG_CHARSET', 'ISO-8859-1');
Finally

This file might be important ? It lies one folder above /serendipity.

It's named @LongLink , and includes this information

serendipity/plugins/serendipity_event_browsercompatibility/serendipity_event_browsercompatibility.php

Will add it now and see whether that makes a difference.

================================================

Danke wieder, wie immer !
:: The only constant in life is change. ::
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Do you have access to your PHP error log? It may be that your Webserver coredumps.

Please post the output of a <?php phpinfo(); ?> script, or give me a link to it.

Regards,
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/
BooBooSpooki_

Post by BooBooSpooki_ »

Hey Garvin,

Was away for the holidays, am back now. Here is the link to our Webserver's phpinfo:

http://www.up.ac.za/phpinfo.php

Gonna try some new things today - let's hope I can find Serendipity :D

Kosie
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, the phpinfo looks okay, apart from that you're using an outdated insecure PHP version ;)

Check your Apache's error_log if you've got access. another thing you might try is to edit your include/functions_installer.inc.php and change all '@include' and '@include_once' and '@require' and '@require_once' calls to be without the '@' to show additional errors.

Regards,
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/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

This was a bug which has today been discovered and fixed. You can download http://nopaste.php-q.net/124968 and save it as /include/admin/installer.inc.php - this should fix your problems.

A 0.8-beta5 with this fix should be released tomorrow.

Regards,
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/
BooBooSpooki_

Post by BooBooSpooki_ »

Mein Herr,

YOU ROCK !

Thanks so very much - today I found my moment of Serendipity ! :D
Post Reply