Bonjour,
Cela fait plusieurs semaines que je planche à la création d'une gallerie pour un ami.
Hors je ne connais pas le php et j'ai du mal à comprendre le fonctionnement interne et l'organisation de ce petit bijoux.
Cela dit avec les astuces que j'ai récupéré sur le forum j'ai pu m'en sortir.
Mon problème: j'ai saisi du code via le plugin "local file editor" pour personnaliser le lien de l'accueil:
<?php
$conf['gallery_url'] = 'index.php?/categories';
?>
Seulement voilà, pour satisfaire aux exigeances de l'ami j'ai du farfouiller à la recherche du bon fichier à éditer pour y ajouter un autre script. J'ai effacer PAR ERREUR le contenu du fichier "/local/config/config.inc.php !! => Crash du site!
J'ai tenter d'utiliser le .bak.php mais pas mieux car il contient pas la même chose.
Je sais j'aurais pas du... Mais, aidez moi s'il vous plait :(
Bonjour
dumy a écrit:
Crash du site!
mais encore ? c'est insuffisant comme info (voir ma signature)
il n'y a normalement rien de vital dans ce fichier, donc on ne pourra vous aider qu'avec un message d'erreur ou autre
Hors ligne
Message d'erreur:
// +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ // | Copyright(C) 2008-2013 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. | // +-----------------------------------------------------------------------+ // Default settings define('PHPWG_VERSION', '2.5.2'); define('PHPWG_DEFAULT_LANGUAGE', 'en_UK'); define('PHPWG_DEFAULT_TEMPLATE', 'elegant'); define('PHPWG_THEMES_PATH', $conf['themes_dir'].'/'); defined('PWG_COMBINED_DIR') or define('PWG_COMBINED_DIR', $conf['data_location'].'combined/'); defined('PWG_DERIVATIVE_DIR') or define('PWG_DERIVATIVE_DIR', $conf['data_location'].'i/'); // Required versions define('REQUIRED_PHP_VERSION', '5.0.0'); // Access codes define('ACCESS_FREE', 0); define('ACCESS_GUEST', 1); define('ACCESS_CLASSIC', 2); define('ACCESS_ADMINISTRATOR', 3); define('ACCESS_WEBMASTER', 4); define('ACCESS_CLOSED', 5); // Sanity checks define('PATTERN_ID', '/^\d+$/'); // Table names if (!defined('CATEGORIES_TABLE')) define('CATEGORIES_TABLE', $prefixeTable.'categories'); if (!defined('COMMENTS_TABLE')) define('COMMENTS_TABLE', $prefixeTable.'comments'); if (!defined('CONFIG_TABLE')) define('CONFIG_TABLE', $prefixeTable.'config'); if (!defined('FAVORITES_TABLE')) define('FAVORITES_TABLE', $prefixeTable.'favorites'); if (!defined('GROUP_ACCESS_TABLE')) define('GROUP_ACCESS_TABLE', $prefixeTable.'group_access'); if (!defined('GROUPS_TABLE')) define('GROUPS_TABLE', $prefixeTable.'groups'); if (!defined('HISTORY_TABLE')) define('HISTORY_TABLE', $prefixeTable.'history'); if (!defined('HISTORY_SUMMARY_TABLE')) define('HISTORY_SUMMARY_TABLE', $prefixeTable.'history_summary'); if (!defined('IMAGE_CATEGORY_TABLE')) define('IMAGE_CATEGORY_TABLE', $prefixeTable.'image_category'); if (!defined('IMAGES_TABLE')) define('IMAGES_TABLE', $prefixeTable.'images'); if (!defined('SESSIONS_TABLE')) define('SESSIONS_TABLE', $prefixeTable.'sessions'); if (!defined('SITES_TABLE')) define('SITES_TABLE', $prefixeTable.'sites'); if (!defined('USER_ACCESS_TABLE')) define('USER_ACCESS_TABLE', $prefixeTable.'user_access'); if (!defined('USER_GROUP_TABLE')) define('USER_GROUP_TABLE', $prefixeTable.'user_group'); if (!defined('USERS_TABLE')) define('USERS_TABLE', isset($conf['users_table']) ? $conf['users_table'] : $prefixeTable.'users' ); if (!defined('USER_INFOS_TABLE')) define('USER_INFOS_TABLE', $prefixeTable.'user_infos'); if (!defined('USER_FEED_TABLE')) define('USER_FEED_TABLE', $prefixeTable.'user_feed'); if (!defined('RATE_TABLE')) define('RATE_TABLE', $prefixeTable.'rate'); if (!defined('USER_CACHE_TABLE')) define('USER_CACHE_TABLE', $prefixeTable.'user_cache'); if (!defined('USER_CACHE_CATEGORIES_TABLE')) define('USER_CACHE_CATEGORIES_TABLE', $prefixeTable.'user_cache_categories'); if (!defined('CADDIE_TABLE')) define('CADDIE_TABLE', $prefixeTable.'caddie'); if (!defined('UPGRADE_TABLE')) define('UPGRADE_TABLE', $prefixeTable.'upgrade'); if (!defined('SEARCH_TABLE')) define('SEARCH_TABLE', $prefixeTable.'search'); if (!defined('USER_MAIL_NOTIFICATION_TABLE')) define('USER_MAIL_NOTIFICATION_TABLE', $prefixeTable.'user_mail_notification'); if (!defined('TAGS_TABLE')) define('TAGS_TABLE', $prefixeTable.'tags'); if (!defined('IMAGE_TAG_TABLE')) define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag'); if (!defined('PLUGINS_TABLE')) define('PLUGINS_TABLE', $prefixeTable.'plugins'); if (!defined('OLD_PERMALINKS_TABLE')) define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks'); if (!defined('THEMES_TABLE')) define('THEMES_TABLE', $prefixeTable.'themes'); if (!defined('LANGUAGES_TABLE')) define('LANGUAGES_TABLE', $prefixeTable.'languages'); ?>
Notice: Use of undefined constant CONFIG_TABLE - assumed 'CONFIG_TABLE' in /home/boyspiri/public_html/include/functions.inc.php on line 1007
Warning: [mysql error 1146] Table 'boyspiri_piwigo.CONFIG_TABLE' doesn't exist
SELECT param, value
FROM CONFIG_TABLE
; in /home/boyspiri/public_html/include/dblayer/functions_mysqli.inc.php on line 834
Notice: Trying to get property of non-object in /home/boyspiri/public_html/include/dblayer/functions_mysqli.inc.php on line 171
Fatal error: Call to a member function fetch_assoc() on a non-object in /home/boyspiri/public_html/include/dblayer/functions_mysqli.inc.php on line 181
Mistic100, j'ai trouvé!
"<?php" avait disparu inexplicablement sur /include/constant.php (???)
Je l'ai replacé et c'est reparti.
Je vais pouvoir me re-triturer les méninges ^^.
Merci pour ta réactivité!
moi je trouve que si :)
deux choses à faire : supprimer le fichier local/config/config.inc.php (en postant ici le contenu actuel)
ET télécharger l'archive de Piwigo correspondant à votre version (la dernière sans doute) pour remplacer tous les fichiers du logiciel sur votre site
Hors ligne
Bon je vais faire ça.
Mais j'avoues avoir besoin d'aide pour éviter de refaire des bêtises.
Je dois installer un script bien particulier pour ajouter une fonction. Si je vous explique tout ça, pourriez-vous m'indiquer où les placer pour faire ça proprement s'il vous plait?
Oui, j'ai déjà cherché... Rien qui m'éclaire. Trop novice pour bien utiliser ces outils.