spip 2.0.3 won't let me login if ecrire/mes_options.php3 exist

Dear all

I found a weird problem.

After installing Spip 2.0.3 on a client website I am working on, I uploaded my template folder (contain template files) as template/

And also upload the mes_options.php3 into the ecrire/ folder.

After data migration seems ok, when I logout I can’t log back in.

This is the screencapture of the login (error)

login-error.jpg

As you can see there is no input field for password, entering in username and press submit lead me to no where!!

I have no plugins, empty tmp/ folder many times but the problem still exist. Then I figure out it could be some « modification » i.e. the mes_options.php3 file.

So I delete this file, and the login page is working again perfectly with user field and password field for input (and able to get inside ecrire section).

Now, I think that is weird! The content of my mes_options.php3 file is very short:

<?php $dossier_squelettes = "./template" ; ?>

Without this file, spip won’t use my template files, which I placed inside template/ folder.
With this file, spip won’t let me go inside the ecrire section!!!

One alternative is copy all my template files to squelettes-dist/ folder, but i don’t want to do this, this would be the last resort!

So please help on how to solve this problem.

Regards,

Vinc.

Hi,

What happens if you put your templates in a /squelettes directory ???

This would help you to keep your /squelettes-dist safe from modification, wouldn’t it ?

By the way :

<?php $dossier_squelettes = "./template" ; ?>

Shouldn’t this take place in /templates/mes_fonctions.php instead of mes_options ?

Another question : why .php3 ??? That may lead to the error. Try renaming your file in .php and see if the issue still occures :wink:

Good luck

Rgds,
Etienne BRACKERS

On Fri, Jan 30, 2009 at 4:34 AM, TN Media <info@tnmedia.net> wrote:

Dear all

I found a weird problem.

After installing Spip 2.0.3 on a client website I am working on, I uploaded my template folder (contain template files) as template/

And also upload the mes_options.php3 into the ecrire/ folder.

After data migration seems ok, when I logout I can’t log back in.

This is the screencapture of the login (error)

login-error.jpg

As you can see there is no input field for password, entering in username and press submit lead me to no where!!

I have no plugins, empty tmp/ folder many times but the problem still exist. Then I figure out it could be some « modification » i.e. the mes_options.php3 file.

So I delete this file, and the login page is working again perfectly with user field and password field for input (and able to get inside ecrire section).

Now, I think that is weird! The content of my mes_options.php3 file is very short:

<?php $dossier_squelettes = "./template" ; ?>

Without this file, spip won’t use my template files, which I placed inside template/ folder.
With this file, spip won’t let me go inside the ecrire section!!!

One alternative is copy all my template files to squelettes-dist/ folder, but i don’t want to do this, this would be the last resort!

So please help on how to solve this problem.

Regards,

Vinc.


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi,

do you have a template named /template/formulaires/login.html ?
It looks like a conflict between your templates and the templates inside /prive/

for the file mes_option.php3, the problem isn’t here.
(personnaly I prefer renaming it mes_options.php and moving it into /config/)

.Gilles

On Fri, Jan 30, 2009 at 5:34 AM, TN Media <info@tnmedia.net> wrote:

Dear all

I found a weird problem.

After installing Spip 2.0.3 on a client website I am working on, I uploaded my template folder (contain template files) as template/

And also upload the mes_options.php3 into the ecrire/ folder.

After data migration seems ok, when I logout I can’t log back in.

This is the screencapture of the login (error)

login-error.jpg

As you can see there is no input field for password, entering in username and press submit lead me to no where!!

I have no plugins, empty tmp/ folder many times but the problem still exist. Then I figure out it could be some « modification » i.e. the mes_options.php3 file.

So I delete this file, and the login page is working again perfectly with user field and password field for input (and able to get inside ecrire section).

Now, I think that is weird! The content of my mes_options.php3 file is very short:

<?php $dossier_squelettes = "./template" ; ?>

Without this file, spip won’t use my template files, which I placed inside template/ folder.
With this file, spip won’t let me go inside the ecrire section!!!

One alternative is copy all my template files to squelettes-dist/ folder, but i don’t want to do this, this would be the last resort!

So please help on how to solve this problem.

Regards,

Vinc.


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi Gilles,

You are absolutely right! Thank you for your quick input.

There was indeed a login.html in /template/formulaires/

After delete the file, the login form appear normally.

Thanks Gilles.

Vinc.

Gilles VINCENT wrote: