Annonce

Écrire une réponse

Veuillez écrire votre message et l'envoyer

Cliquez dans la zone sombre de l'image pour envoyer votre message.

Retour

Résumé de la discussion (messages les plus récents en premier)

ddtddt
2011-01-21 17:42:23

Super si ton problème est résolue :-)

N'hésite pas à passer le sujet en [résolu]
lien dans le premier post

Mat
2011-01-21 17:28:56

Re Bonsoir,

J'ai trouvé le problème le fichier index.php était à nouveau corrompu, pas de chance.

Remerciement à tous ceux qui mon aidé.

Forum efficace.

A+

Mat

Mat
2011-01-21 17:16:51

Bonsoir,

Effectivement le problème était dans le fichier index.php, merci beaucoup.

Mais ca fonctionne pas correctement, les messages ci-dessous s'affiche dans la galerie fichier index.php dans le fichier picture.php pas de message d'erreur :

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/monsiteweb.ch/httpdocs/photos/index.php:2) in /home/httpd/vhosts/monsiteweb.ch/httpdocs/photos/include/user.inc.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/monsiteweb.ch/httpdocs/photos/index.php:2) in /home/httpd/vhosts/monsiteweb.ch/httpdocs/photos/include/page_header.php on line 98

Dois je comprendre que c'est le même type de souci, quelqu'un à une idée ?

Cordiales salutations.

Mat

ddtddt
2011-01-21 13:54:01

Mat a écrit:

Donc la question est simple est ce un problème de configuration de PHP, je donne un exemple si le safemode est sur on il est impossible d'installer Piwigo, peut être est ce un problème identique, qu'en pensez vous?

Pas de problème du tout je pense
Juste une erreur de transfert de fichier

ddtddt
2011-01-21 13:52:36

le problème est qu'a la racinde de Piwigo ce n'est pas cela le contenue d'index.php

le bon contenue est

<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery                                  |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify  |
// | it under the terms of the GNU General Public License as published by  |
// | the Free Software Foundation                                          |
// |                                                                       |
// | This program is distributed in the hope that it will be useful, but   |
// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
// | General Public License for more details.                              |
// |                                                                       |
// | You should have received a copy of the GNU General Public License     |
// | along with this program; if not, write to the Free Software           |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA.                                                                  |
// +-----------------------------------------------------------------------+

//--------------------------------------------------------------------- include
define('PHPWG_ROOT_PATH','./');
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
include(PHPWG_ROOT_PATH.'include/section_init.inc.php');

trigger_action('loc_begin_index');

// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok                      |
// +-----------------------------------------------------------------------+
check_status(ACCESS_GUEST);

//---------------------------------------------- change of image display order
if (isset($_GET['image_order']))
{
  if ( (int)$_GET['image_order'] > 0)
  {
    pwg_set_session_var('image_order', (int)$_GET['image_order']);
  }
  else
  {
    pwg_unset_session_var('image_order');
  }
  redirect(
    duplicate_index_url(
      array(),        // nothing to redefine
      array('start')  // changing display order goes back to section first page
      )
    );
}
//-------------------------------------------------------------- initialization
// detection of the start picture to display
if (!isset($page['start']))
{
  $page['start'] = 0;
}

// access authorization check
if (isset($page['category']))
{
  check_restrictions($page['category']['id']);
}

$page['navigation_bar'] = array();
if (count($page['items']) > $user['nb_image_page'])
{
  $page['navigation_bar'] = create_navigation_bar(
    duplicate_index_url(array(), array('start')),
    count($page['items']),
    $page['start'],
    $page['nb_image_page'],
    true
    );
}

// caddie filling :-)
if (isset($_GET['caddie']))
{
  fill_caddie($page['items']);
  redirect(duplicate_index_url());
}

//----------------------------------------------------- template initialization
//
// Start output of page
//
$title = $page['title'];
$page['body_id'] = 'theCategoryPage';

$template->set_filenames( array('index'=>'index.tpl') );
//-------------------------------------------------------------- category title
$template_title = $page['title'];
if (count($page['items']) > 0)
{
  $template_title.= ' ['.count($page['items']).']';
}
$template->assign('TITLE', $template_title);

if (isset($page['flat']) or isset($page['chronology_field']))
{
  $template->assign(
    'U_MODE_NORMAL',
    duplicate_index_url( array(), array('chronology_field', 'start', 'flat') )
    );
}

if ($conf['index_flat_icon'] and !isset($page['flat']) and 'categories' == $page['section'])
{
  $template->assign(
    'U_MODE_FLAT',
    duplicate_index_url(array('flat' => ''), array('start', 'chronology_field'))
    );
}

if (!isset($page['chronology_field']))
{
  $chronology_params =
      array(
          'chronology_field' => 'created',
          'chronology_style' => 'monthly',
          'chronology_view' => 'list',
      );
  if ($conf['index_created_date_icon'])
  {
    $template->assign(
      'U_MODE_CREATED',
      duplicate_index_url( $chronology_params, array('start', 'flat') )
      );
  }
  if ($conf['index_posted_date_icon'])
  {
    $chronology_params['chronology_field'] = 'posted';
    $template->assign(
      'U_MODE_POSTED',
      duplicate_index_url( $chronology_params, array('start', 'flat') )
      );
  }
}
else
{
  if ($page['chronology_field'] == 'created')
  {
    $chronology_field = 'posted';
  }
  else
  {
    $chronology_field = 'created';
  }
  if ($conf['index_'.$chronology_field.'_date_icon'])
  {
    $url = duplicate_index_url(
              array('chronology_field'=>$chronology_field ),
              array('chronology_date', 'start', 'flat')
            );
    $template->assign(
        'U_MODE_'.strtoupper($chronology_field),
        $url
      );
  }
}

if ('search' == $page['section'])
{
  $template->assign(
    'U_SEARCH_RULES',
    get_root_url().'search_rules.php?search_id='.$page['search']
    );
}

if (isset($page['category']) and is_admin())
{
  $template->assign(
    'U_EDIT',
     get_root_url().'admin.php?page=cat_modify'
        .'&amp;cat_id='.$page['category']['id']
    );
}

if (is_admin() and !empty($page['items']))
{
  $template->assign(
    'U_CADDIE',
     add_url_params(duplicate_index_url(), array('caddie'=>1) )
    );
}

if ( $page['section']=='search' and $page['start']==0 and
    !isset($page['chronology_field']) and isset($page['qsearch_details']) )
{
  $template->assign('QUERY_SEARCH',
    htmlspecialchars($page['qsearch_details']['q']) );

  $cats = array_merge(
      (array)@$page['qsearch_details']['matching_cats_no_images'],
      (array)@$page['qsearch_details']['matching_cats'] );
  if (count($cats))
  {
    usort($cats, 'name_compare');
    $hints = array();
    foreach ( $cats as $cat )
    {
      $hints[] = get_cat_display_name( array($cat), '', false );
    }
    $template->assign( 'category_search_results', $hints);
  }

  $tags = (array)@$page['qsearch_details']['matching_tags'];
  if (count($tags))
  {
    usort($tags, 'name_compare');
    $hints = array();
    foreach ( $tags as $tag )
    {
      $hints[] =
        '<a href="' . make_index_url(array('tags'=>array($tag))) . '">'
        .$tag['name']
        .'</a>';
    }
    $template->assign( 'tag_search_results', $hints);
  }
}

// navigation bar
$template->assign( 'navbar', $page['navigation_bar'] );

if ( $conf['index_sort_order_input']
    and count($page['items']) > 0
    and $page['section'] != 'most_visited'
    and $page['section'] != 'best_rated')
{
  // image order
  $order_idx = pwg_get_session_var( 'image_order', 0 );

  $url = add_url_params(
          duplicate_index_url(),
          array('image_order' => '')
        );
  foreach (get_category_preferred_image_orders() as $order_id => $order)
  {
    if ($order[2])
    {
      $template->append(
        'image_orders',
        array(
          'DISPLAY' => $order[0],
          'URL' => $url.$order_id,
          'SELECTED' => ($order_idx == $order_id ? true:false),
          )
        );
    }
  }
}

// category comment
if (isset($page['comment']) and $page['comment'] != '')
{
  $template->assign('CONTENT_DESCRIPTION', $page['comment'] );
}

// include menubar
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');

//------------------------------------------------------ main part : thumbnails
if ( 0==$page['start']
    and !isset($page['flat'])
    and !isset($page['chronology_field'])
    and ('recent_cats'==$page['section'] or 'categories'==$page['section'])
    and (!isset($page['category']['count_categories']) or $page['category']['count_categories']>0 )
  )
{
  include(PHPWG_ROOT_PATH.'include/category_cats.inc.php');
}
if ( !empty($page['items']) )
{
  include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
}
//------------------------------------------------------- category informations

// slideshow
// execute after init thumbs in order to have all picture informations
if (!empty($page['cat_slideshow_url']))
{
  if (isset($_GET['slideshow']))
  {
    redirect($page['cat_slideshow_url']);
  }
  elseif ($conf['index_slideshow_icon'])
  {
    $template->assign('U_SLIDESHOW', $page['cat_slideshow_url']);
  }
}

include(PHPWG_ROOT_PATH.'include/page_header.php');
trigger_action('loc_end_index');
$template->pparse('index');
//------------------------------------------------------------ log informations
pwg_log();
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>

c'est pour cela que j'ai demandé

ddtddt a écrit:

Juste pour palier une erreur de manipulation précédente, peux tu réenvoyer par FTP le fichier index.php original de Piwigo

Mat
2011-01-21 13:24:28

Bonjour,

Voici comme demandé:

<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based picture gallery                                  |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify  |
// | it under the terms of the GNU General Public License as published by  |
// | the Free Software Foundation                                          |
// |                                                                       |
// | This program is distributed in the hope that it will be useful, but   |
// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
// | General Public License for more details.                              |
// |                                                                       |
// | You should have received a copy of the GNU General Public License     |
// | along with this program; if not, write to the Free Software           |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA.                                                                  |
// +-----------------------------------------------------------------------+

// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

Selon moi le problème est tout autre, motif depuis aujourd'hui lorsque je tente de me connecter à la partie Admin sous www.monsite.ch/photos/identification.php avec le user et le pass, puis valider.

Je suis systématiquement redirigé sous l'index mon site www.monsite.ch. (joomla)

Donc le problème est identique à la partie galerie qui me redirige à la partie index de Joomla.

Donc la question est simple est ce un problème de configuration de PHP, je donne un exemple si le safemode est sur on il est impossible d'installer Piwigo, peut être est ce un problème identique, qu'en pensez vous?

D'avance merci de votre réponse

Cordiales salutations

Mat

ddtddt
2011-01-21 13:08:50

Juste pour palier une erreur de manipulation précédente, peux tu réenvoyer par FTP le fichier index.php original de Piwigo

Peux tu me donner un lien de ton installation (en MP si tu le souhaites)

Mat
2011-01-21 13:04:55

Bonjour,

J'ai bien reçu votre réponse, je vous en remercie

J'ai essayé d'enlever le fichier Rewitecont sans succès dans htaccess de Joomla.

Comme on m'informe que htaccess est le fichier en cause, je l'ai supprimé de la racine de Joomla, mais le problème est identique.

Quelqu'un à une autre idée ?

Cordiales salutations


Mat

ddtddt
2011-01-20 19:00:00

je dirais en 1 déplacer le htaccess dans le répertoire installation de joomla

Si celui si est installer à la racine

Faire un htaccess dans le répertoire photo
Qui ne fait pas le Rewrite

Gotcha
2011-01-20 18:56:35

Je pense que la solution se trouve dans le fichier .htaccess

Code:

##
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

J'en appel aux spécialistes car ce n'est pas mon domaine...

Gotcha
2011-01-20 18:04:29

*** Courriel envoyé ***

Mat
2011-01-20 17:29:44

Bonsoir,

J'ai un souci, j'ai installé Joomla et Piwigo mais je n'arrive pas à voir la galerie photo de Piwigo, pourtant la partie admin fonctionne très bien.

Le problème est le suivant, chaque fois que j'appels mon site web wwwmonsiteweb.ch/photos/index.php  ce n'est pas la galerie Piwigo qui s'affiche mais la page index de Joomla (c'est automatique) cela me redirige sur le fichier index.php de Joomla, au lieux de la galerie photo de
Piwigo ?

J'ai pourtant créer un répertoire individuelle pour Piwigo il est intitulé "photos"

Il est évident que le lien "Visiter la galerie" dans la partie admin ne fonctionne pas non plus...(il me dirige automatiquement sur la page index de mon site Joomla

Avez vous une solution à me proposer ?

D'avance merci

Cordiales salutations

Mat

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact