[ar] [ca] [cpf] [de] [en] [es] [fr] [it]

This is where you can ask questions about the SPIP cms.

Topics : 254 Topics solved :  31 %

41 visitors now


Home > Forums about SPIP >  Using the private area > Redirect to empty page when change the article status to published (...)

Redirect to empty page when change the article status to published online solved

by Oscar - 6 August 2013 12:00 - Replies : 8

Hi,

Background:
My site is upgrade SPIP from 2.0.0 to 2.1.23.
I download the SPIP 2.1.23 files and replace to the correct SPIP folder, then login the ecrire and click upgrade database.
Everything seem work correctly, but when i create a new article or edit old article status. It will redirect to a empty page.
But if i click browser [back] & [refresh], the article status will be change. That means the function can be work but seem just cannot redirect to private area.

I have try to new install SPIP 2.1.23 using the same downloaded files & same server. The article status can be change correctly.
The old SPIP 2.0.0 article status can be change correctly too.

Is that something i missing in the upgrade step or not correct?

I running Apache 2.4 x64 edition using mod_fcgi 2.3.7 to call php 5.4.12 on Windows Server 2008R2.
Will it case of my server setting?

Thanks in advance for reading.


  • Hi,

    have you drop the directory /tmp/cache after the upgrade ?

    When you see the empty page, you probably have a PHP error. Can you check your logs ?

    The folders to replace for your upgrade are extensions, ecrire, prive and squelettes-dist

    .Gilles


  • Hi,

    I have clear the directory /tmp after upgrade.

    I check /tmp/prive_spip.log and found the following logs:
    Aug 07 10:58:16 192.168.1.240 (pid 10288) Erreur - ’premiere_revision’ non definie !
    Aug 07 10:58:16 192.168.1.240 (pid 10288) langues utilisees: en,pt,zh
    Aug 07 10:58:16 192.168.1.240 (pid 10288) Erreur - ’nouvelle_revision’ non definie !
    Aug 07 10:58:16 192.168.1.240 (pid 10288) notifications_instituerarticle_dist(instituerarticle,1289,a:3:s:6:"statut";s:6:"publie";s:13:"statut_ancien";s:5:"prepa";s:4:"date";s:19:"2013-08-07 10:58:16";)
    Aug 07 10:58:16 192.168.1.240 (pid 10288) fonction execute_pipeline_notifications_destinataires absente : pipeline desactive
    Aug 07 10:58:17 192.168.1.240 (pid 10288) COMPIL (4.630 ms) [notifications/article_publie.html] html_b912a2c9cbc1fc4c60ef9d2128f3ac80.php
    Aug 07 10:58:17 192.168.1.240 (pid 10288) COMPIL (3.886 ms) [../squelettes-dist/modeles/lesauteurs.html] html_bc9e302ffa08db4e6670ebc8891e3666.php
    Aug 07 10:58:17 192.168.1.240 (pid 10288) reordonne auteur 10
    Aug 07 10:58:17 192.168.1.240 (pid 10288) calcul (16.184 ms) [../squelettes-dist/modeles/lesauteurs] id_article=1289, lang=zh, date=’2013-08-07 10:58:17’, date_default=1, date_redac=’2013-08-07 10:58:17’, date_redac_default=1 (91 octets)
    Aug 07 10:58:17 192.168.1.240 (pid 10288) calcul (36.715 ms) [notifications/article_publie] id_article=1289, lang=en, date=’2013-08-07 10:58:17’, date_default=1, date_redac=’2013-08-07 10:58:17’, date_redac_default=1 (453 octets)

    What can I do for checking it?

    Thanks for your help.

    Oscar


  • This is strange..
    nouvelle_revision() is a function defined in ecrire/inc/filtres.php
    It is called after modification with the pipeline ’post_edition’
    Can you upload the directory ’ecrire’ again on your server ?


  • Hi,

    I have try to upload again ’ecrie’ to server and it cannot be fixed..
    I open ’ecrire/inc/filtres.php’ and the function can be found ..

    /*
    * Deux verrues pour que le pipeline de revisions soit correct
    * elles vont sauter quand ca passera en plugin
    */
    function premiere_revision($x)
    include_spip(’inc/revisions’);
    return enregistrer_premiere_revision($x);

    function nouvelle_revision($x)
    include_spip(’inc/revisions’);
    return enregistrer_nouvelle_revision($x);

    I set display error in mes_option.php:
    error_reporting(E_ALL);
    ini_set ("display_errors", "On");
    define(’SPIP_ERREUR_REPORT’, E_ALL);
    define(’SPIP_ERREUR_REPORT_INCLUDE_PLUGINS’, E_ALL);

    I can see the following message on the ’Empty Page’, is that can be help for checking .. ?

    Notice: Constant SPIP_ERREUR_REPORT already defined in C:\Data\httpd\www\spip\ecrire\inc_version.php on line 444
    Notice: Undefined index: spip_lang in C:\Data\httpd\www\spip\ecrire\inc\lang.php on line 269
    Notice: Undefined offset: 0 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 1 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 2 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 3 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 4 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 5 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 6 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 7 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 8 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 9 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 10 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 11 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 12 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 13 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 14 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 15 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 16 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 17 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 18 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 19 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 20 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 21 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 22 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 23 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 24 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 25 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 26 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 27 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 28 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 29 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 30 in C:\Data\httpd\www\spip\ecrire\auth\sha256.inc.php on line 213
    Notice: Undefined offset: 1 in C:\Data\httpd\www\spip\ecrire\action\instituer_article.php on line 21
    Notice: Undefined index: id_parent in C:\Data\httpd\www\spip\ecrire\action\editer_article.php on line 210
    Notice: Undefined index: HTTPS in C:\Data\httpd\www\spip\ecrire\public\assembler.php on line 223
    Notice: Undefined index: statut in C:\Data\httpd\www\spip\ecrire\public\composer.php(49) : eval()’d code on line 16
    Notice: Undefined index: statut in C:\Data\httpd\www\spip\ecrire\public\composer.php(49) : eval()’d code on line 33
    Notice: Undefined index: statut in C:\Data\httpd\www\spip\ecrire\public\composer.php(49) : eval()’d code on line 33
    Notice: Undefined index: HTTPS in C:\Data\httpd\www\spip\ecrire\public\assembler.php on line 223
    Notice: Undefined index: article1 in C:\Data\httpd\www\spip\ecrire\urls\propres.php on line 195
    Notice: Undefined index: article2 in C:\Data\httpd\www\spip\ecrire\urls\propres.php on line 196
    Notice: Undefined index: filtre_supprimer_tags in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43
    Notice: Undefined index: filtre_supprimer_tags_dist in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43
    Notice: Undefined index: supprimer_tags in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43
    Notice: Undefined index: filtre_filtrer_entites in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43
    Notice: Undefined index: filtre_filtrer_entites_dist in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43
    Notice: Undefined index: filtrer_entites in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43
    Notice: Undefined index: filtre_trim in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43
    Notice: Undefined index: filtre_trim_dist in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43
    Notice: Undefined index: trim in C:\Data\httpd\www\spip\ecrire\inc\filtres.php on line 43

    Thanks,
    Oscar


  • In fact I have no idea now..

    The second notice error is absolutely not normal


  • I think it may be case of DB issue ...

    I try to new install SPIP 2.1.23 and try the function is work.
    Then I restore old DB (which upgrade from SPIP 2.0) and the function will not work and get the same error message ..

    Aug 16 18:02:37 192.168.1.240 (pid 5884) calcul (4.900 ms) [../prive/infos/article] type=article, id=1289, lang=en, date=’2013-08-16 18:02:37’, date_default=1, date_redac=’2013-08-16 18:02:37’, date_redac_default=1 (4305 octets)
    Aug 16 18:02:37 192.168.1.240 (pid 5884) calcul (12.419 ms) [../prive/contenu/article] id=1289, id_rubrique=148, id_secteur=18, lang=en, date=’2013-08-16 18:02:37’, date_default=1, date_redac=’2013-08-16 18:02:37’, date_redac_default=1 (3748 octets)
    Aug 16 18:02:37 192.168.1.240 (pid 5884) ajoute session ../tmp/sessions/18_9dae0063991004d7eaa09a045c1f3050.php cookie 86400
    Aug 16 18:02:39 192.168.1.240 (pid 5884) ajoute session ../tmp/sessions/18_9dae0063991004d7eaa09a045c1f3050.php cookie 86400
    Aug 16 18:02:39 192.168.1.240 (pid 5884) Erreur - ’premiere_revision’ non definie !
    Aug 16 18:02:39 192.168.1.240 (pid 5884) langues utilisees: en,pt,zh
    Aug 16 18:02:39 192.168.1.240 (pid 5884) Erreur - ’nouvelle_revision’ non definie !
    Aug 16 18:02:39 192.168.1.240 (pid 5884) notifications_instituerarticle_dist(instituerarticle,1289,a:3:s:6:"statut";s:5:"prepa";s:13:"statut_ancien";s:6:"publie";s:4:"date";s:19:"2013-08-16 17:58:55";)

    I try to using SPIP DB repair and not work.

    Is that any ideal for checking this issue ..

    Thanks,
    Oscar


  • Hi,

    I’d the same problem, recently.
    Try with this correction :
    http://core.spip.org/projects/spip/repository/revisions/20786

    Julien


  • Hi,

    Sorry for reply late.

    I have try the solution and it’s work !
    I have check the spip.log and everything seem correctly.

    Thanks a million to everybody for working in this case.

    Thanks,
    Oscar


  •  


Answering the question

« Redirect to empty page when change the article status to published online »

Keywords

You can tag this forum page with the keywords that you think are the most appropriate. This will help future visitors to find answers more quickly.


Installation, updates

Using the private area

Administration, management and configuration of your site

Creating your templates

Who are you?
  • Log in Register

by relevancy | by date

  • Problems logging in to the private area

    by Gracy_liura
    26 April 15:32

    Solved - Replies : 5

    Remove or uninstall plugins and Just restart your browser

  • How do i make changes to the right Navigation table

    5 February 16:47

    Replies : 4

    Hello girls, Can you detail a bit more what you want to do ? The URL of the website should be defined in configuration/site identity - if the site address has changed since the site first (...)

  • Image does not display

    12 January 23:26

    Replies : 1

    Hi, Any file in the local/cache/ directory is temporary so you should link to the source image.

  • How to set php value to spip variable?

    20 June 2016 10:29

    No reply

    <?php $id=10; ?> #SETID,id i don’t know.How to set value to spip variable.

  • Order by not working

    by tcharlss
    13 June 2016 18:01

    Replies : 1

    Hi, Could you post your message again, embedding the code inside the <code> tag please ? It’s not visible at the moment ! You can order the results with the par ... criteria, for instance (...)

  • how to restore a template?

    by devkbsc
    18 June 2015 12:11

    No reply

    Hello, I have tried to seperate three of my site from my kernal site. I have succeed in the level of content and database. But, My templates are not working with my sites. All my sub sites (...)

  • Login visitors via GET

    by nassy
    27 April 2014 09:51

    No reply

    Hello, i’m new to Spip (3.x). I would customize the login process via GET instead POST. So I think that I should not use the "formulaire" that blocks my attemps with param formulaire_action_args.. (...)

  • What i cant upload a big audio files( like more than 12Mb)?

    1 April 2014 13:31

    Solved - Replies : 3

    generally mail supports only upto 25MB (means it is the maximum limit ) if it exceeds more than 25MB its better to go with drive if it is g.drive or skydrive...

  • Title and Credit fields

    by erational
    27 September 2013 05:30

    Replies : 1

    an old plugin almost does the job by reading the exif data http://plugins.spip.net/exif.html maybe it requires a small update to be compatible with SPIP 2 and (...)

  • Redirect to empty page when change the article status to published online

    2 September 2013 03:48

    Solved - Replies : 8

    Hi, Sorry for reply late. I have try the solution and it’s work ! I have check the spip.log and everything seem correctly. Thanks a million to everybody for working in this case. Thanks, (...)

  • Forum posts : 98
  • 25 45 %
  • Ask a new question