Aide - Recherche - Membres - Calendrier
Version complète : [Resolu] Impossible d'acceder a l'admin (message d'erreur)
Forum osCommerce-fr > Adapter OsCommerce MS2 > Contributions
dero
Bonjour

J'essaie d'installer "Admin_level_account_with_categories_2.3"

mais je n'arrive pas a acceder a mon admin

j'ai ce message d'erreur
Code
Parse error: syntax error, unexpected T_IF, expecting ')' in /home/admin/www/xxxx/index.php on line 80


ce qui correspond a cette ligne
Code
array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),


Ca fait 2 fois que je reinstalle la contrib mais meme resultat
Quelle betise ai je pu faire ?

merci
Mauricio
Bonsoir Dero,

A priori, il s'agit d'un problème de syntaxe : il manque une parenthèse ) fermante.
Donc il faut que tu vérifies les modifications liées à la contrib autour de la ligne 80.

Si tu ne trouves pas, tu peux nous faire une copie du code qu'on y jette un oeil.

@+
Mauricio
sykaflex
salut
Code
unexpected T_IF, expecting ')'

Code
....'selected_box=customers')))),

[edit] oups mauricio, j'avais pas vu, effectivement ... encore répondu trop vite blush.gif faut voir le code de la contrib... mais demain/bonne nuit
Mauricio
En fait, pas sûr que ce soit lié aux 4 parenthèses.
Elles semblent normales d'après le fichier index.php de la contrib :

Code
array('title' => BOX_HEADING_CUSTOMERS,
        'image' => 'customers.gif',
        'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),
        'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),
                         array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),

Donc je pense que le problème se trouve plus haut dans le fichier.

@+
Mauricio
dero
Merci pour vos reponses

je vous joints mon fichiers index
Peut etre y verrez vous plus claire que moi mais a premiere vu les parentheses semblent correctes

Code
<?php
/*
  $Id: index.php,v 1.19 2003/06/27 09:38:31 dgw_ Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');
  
  // BOF: KategorienAdmin / OLISWISS
  if ($login_groups_id != 1) {
    tep_redirect(tep_href_link(FILENAME_CATEGORIES, ''));
  }
// BOF: KategorienAdmin / OLISWISS

  // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 10
// uncomment below line to disable this contribution
//    $cat = array(array('title' => BOX_HEADING_CONFIGURATION,
// comment below lines to disable this contribution
  $cat = array(array('title' => BOX_HEADING_ADMINISTRATOR,
                     'access' => tep_admin_check_boxes('administrator.php'),
                     'image' => 'administrator.gif',
                     'href' => tep_href_link(tep_selected_file('administrator.php'), 'selected_box=administrator'),
                     'children' => array(array('title' => BOX_ADMINISTRATOR_MEMBER, 'link' => tep_href_link(FILENAME_ADMIN_MEMBERS, 'selected_box=administrator'),
                                               'access' => tep_admin_check_boxes(FILENAME_ADMIN_MEMBERS, 'sub_boxes')),
                                         array('title' => BOX_ADMINISTRATOR_BOXES, 'link' => tep_href_link(FILENAME_ADMIN_FILES, 'selected_box=administrator'),
                                               'access' => tep_admin_check_boxes(FILENAME_ADMIN_FILES, 'sub_boxes')))),
                                array('title' => BOX_HEADING_MY_ACCOUNT,
                     'access' => 'true',
                     'image' => 'my_account.gif',
                     'href' => tep_href_link(FILENAME_ADMIN_ACCOUNT),
                     'children' => array(array('title' => HEADER_TITLE_ACCOUNT, 'link' => tep_href_link(FILENAME_ADMIN_ACCOUNT),
                                               'access' => 'true'),
                                         array('title' => HEADER_TITLE_LOGOFF_ADMIN, 'link' => tep_href_link(FILENAME_LOGOFF_ADMIN),
                                               'access' => 'true'))),
                array('title' => BOX_HEADING_CONFIGURATION,
                     'access' => tep_admin_check_boxes('configuration.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 10
                     'image' => 'configuration.gif',
                     'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),
                     'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),
                                         array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),
                                         array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')))),
               array('title' => BOX_HEADING_MODULES,
               // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 2 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('modules.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 2 of 10
                     'image' => 'modules.gif',
                     'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),
                     'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),
                                         array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')))),
               array('title' => BOX_HEADING_CATALOG,
               // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 3 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('catalog.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 3 of 10
                     'image' => 'catalog.gif',
                     'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
                     'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
                                         array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),
               array('title' => BOX_HEADING_LOCATION_AND_TAXES,
               // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 4 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('taxes.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 4 of 10
                     'image' => 'location.gif',
                     'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),
                     'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),
                                         array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')))),
               array('title' => BOX_HEADING_CUSTOMERS,
                     'image' => 'customers.gif',
                     'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),
                     'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),
                                         array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),
               array('title' => BOX_HEADING_LOCALIZATION,
               // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 6 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('localization.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 6 of 10
                     'image' => 'localization.gif',
                     'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),
                     'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),
                                         array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')))),
               array('title' => BOX_HEADING_REPORTS,
               // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 7 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('reports.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 7 of 10
                     'image' => 'reports.gif',
                     'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),
                     'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),
                                         array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),
               array('title' => BOX_HEADING_TOOLS,
               // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 8 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('tools.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 8 of 10
                     'image' => 'tools.gif',
                     'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'),
                     'children' => array(array('title' => TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')),
                                         array('title' => TOOLS_BANNERS, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')),
                                         array('title' => TOOLS_FILES, 'link' => tep_href_link(FILENAME_FILE_MANAGER, 'selected_box=tools')))));

  $languages = tep_get_languages();
  $languages_array = array();
  $languages_selected = DEFAULT_LANGUAGE;
  for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
    $languages_array[] = array('id' => $languages[$i]['code'],
                               'text' => $languages[$i]['name']);
    if ($languages[$i]['directory'] == $language) {
      $languages_selected = $languages[$i]['code'];
    }
  }
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<style type="text/css"><!--
a { color:#080381; text-decoration:none; }
a:hover { color:#aabbdd; text-decoration:underline; }
a.text:link, a.text:visited { color: #000000; text-decoration: none; }
a:text:hover { color: #000000; text-decoration: underline; }
a.main:link, a.main:visited { color: #ffffff; text-decoration: none; }
A.main:hover { color: #ffffff; text-decoration: underline; }
a.sub:link, a.sub:visited { color: #dddddd; text-decoration: none; }
A.sub:hover { color: #dddddd; text-decoration: underline; }
.heading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; line-height: 1.5; color: #D3DBFF; }
.main { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 17px; font-weight: bold; line-height: 1.5; color: #ffffff; }
.sub { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 1.5; color: #dddddd; }
.text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 1.5; color: #000000; }
.menuBoxHeading { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff; font-weight: bold; background-color: #7187bb; border-color: #7187bb; border-style: solid; border-width: 1px; }
.infoBox { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #080381; background-color: #f2f4ff; border-color: #7187bb; border-style: solid; border-width: 1px; }
.smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
//--></style>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

<table border="0" width="600" height="100%" cellspacing="0" cellpadding="0" align="center" valign="middle">
  <tr>
    <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="1" align="center" valign="middle">
      <tr bgcolor="#000000">
        <td><table border="0" width="600" height="440" cellspacing="0" cellpadding="0">
          <tr bgcolor="#ffffff" height="50">
            <td height="50"><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>
            <td align="right" class="text" nowrap><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . HEADER_TITLE_ADMINISTRATION . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' . tep_catalog_href_link() . '">' . HEADER_TITLE_ONLINE_CATALOG . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.oscommerce.com" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a>'; ?>&nbsp;&nbsp;</td>
          </tr>
          <tr bgcolor="#080381">
            <td colspan="2"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">
              <tr valign="top">
                <td width="140" valign="top"><table border="0" width="140" height="390" cellspacing="0" cellpadding="2">
                  <tr>
                    <td valign="top"><br>
<?php
  $heading = array();
  $contents = array();

  $heading[] = array('params' => 'class="menuBoxHeading"',
                     'text'  => 'osCommerce');

  $contents[] = array('params' => 'class="infoBox"',
                      'text'  => '<a href="http://www.oscommerce.com" target="_blank">' . BOX_ENTRY_SUPPORT_SITE . '</a><br>' .
                                 '<a href="http://www.oscommerce.com/community.php/forum" target="_blank">' . BOX_ENTRY_SUPPORT_FORUMS . '</a><br>' .
                                 '<a href="http://www.oscommerce.com/community.php/mlists" target="_blank">' . BOX_ENTRY_MAILING_LISTS . '</a><br>' .
                                 '<a href="http://www.oscommerce.com/community.php/bugs" target="_blank">' . BOX_ENTRY_BUG_REPORTS . '</a><br>' .
                                 '<a href="http://www.oscommerce.com/community.php/faq" target="_blank">' . BOX_ENTRY_FAQ . '</a><br>' .
                                 '<a href="http://www.oscommerce.com/community.php/irc" target="_blank">' . BOX_ENTRY_LIVE_DISCUSSIONS . '</a><br>' .
                                 '<a href="http://www.oscommerce.com/community.php/cvs" target="_blank">' . BOX_ENTRY_CVS_REPOSITORY . '</a><br>' .
                                 '<a href="http://www.oscommerce.com/about.php/portal" target="_blank">' . BOX_ENTRY_INFORMATION_PORTAL . '</a>');

  $box = new box;
  echo $box->menuBox($heading, $contents);

  echo '<br>';

  $orders_contents = '';
  $orders_status_query = tep_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'");
  while ($orders_status = tep_db_fetch_array($orders_status_query)) {
    $orders_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'");
    $orders_pending = tep_db_fetch_array($orders_pending_query);
    // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 10 of 10
// reverse comments to below lines to disable this contribution
//    $orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';
    if (tep_admin_check_boxes(FILENAME_ORDERS, 'sub_boxes') == true) {
      $orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';
    } else {
      $orders_contents .= '' . $orders_status['orders_status_name'] . ': ' . $orders_pending['count'] . '<br>';
    }
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 10 of 10
  }
  $orders_contents = substr($orders_contents, 0, -4);

  $heading = array();
  $contents = array();

  $heading[] = array('params' => 'class="menuBoxHeading"',
                     'text'  => BOX_TITLE_ORDERS);

  $contents[] = array('params' => 'class="infoBox"',
                      'text'  => $orders_contents);

  $box = new box;
  echo $box->menuBox($heading, $contents);

  echo '<br>';

  $customers_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS);
  $customers = tep_db_fetch_array($customers_query);
  $products_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'");
  $products = tep_db_fetch_array($products_query);
  $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS);
  $reviews = tep_db_fetch_array($reviews_query);

  $heading = array();
  $contents = array();

  $heading[] = array('params' => 'class="menuBoxHeading"',
                     'text'  => BOX_TITLE_STATISTICS);

  $contents[] = array('params' => 'class="infoBox"',
                      'text'  => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br>' .
                                 BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br>' .
                                 BOX_ENTRY_REVIEWS . ' ' . $reviews['count']);

  $box = new box;
  echo $box->menuBox($heading, $contents);

  echo '<br>';

  $contents = array();

  if (getenv('HTTPS') == 'on') {
    $size = ((getenv('SSL_CIPHER_ALGKEYSIZE')) ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>');
    $contents[] = array('params' => 'class="infoBox"',
                        'text' => tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED, '', '', 'align="right"') . sprintf(BOX_CONNECTION_PROTECTED, $size));
  } else {
    $contents[] = array('params' => 'class="infoBox"',
                        'text' => tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED);
  }

  $box = new box;
  echo $box->tableBlock($contents);
?>
                    </td>
                  </tr>
                </table></td>
                <td width="460"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">
                  <tr>
                    <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                      <tr><?php echo tep_draw_form('languages', 'index.php', '', 'get'); ?>
                        <td class="heading"><?php echo HEADING_TITLE; ?></td>
                        <td align="right"><?php echo tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"'); ?></td>
                      </form></tr>
                    </table></td>
                  </tr>
<?php
  $col = 2;
  $counter = 0;
  for ($i = 0, $n = sizeof($cat); $i < $n; $i++) {
    $counter++;
    if ($counter < $col) {
      echo '                  <tr>' . "\n";
    }

    echo '                    <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .
         '                      <tr>' . "\n" .
         '                        <td><a href="' . $cat[$i]['href'] . '">' . tep_image(DIR_WS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '32', '32') . '</a></td>' . "\n" .
         '                        <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .
         '                          <tr>' . "\n" .
         '                            <td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" .
         '                          </tr>' . "\n" .
         '                          <tr>' . "\n" .
         '                            <td class="sub">';

    $children = '';
    for ($j = 0, $k = sizeof($cat[$i]['children']); $j < $k; $j++) {
      $children .= '<a href="' . $cat[$i]['children'][$j]['link'] . '" class="sub">' . $cat[$i]['children'][$j]['title'] . '</a>, ';
    }
    echo substr($children, 0, -2);

    echo '</td> ' . "\n" .
         '                          </tr>' . "\n" .
         '                        </table></td>' . "\n" .
         '                      </tr>' . "\n" .
         '                    </table></td>' . "\n";

    if ($counter >= $col) {
      echo '                  </tr>' . "\n";
      $counter = 0;
    }
  }
?>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php require(DIR_WS_INCLUDES . 'footer.php'); ?></td>
      </tr>
    </table></td>
  </tr>
</table>

</body>

</html>
dero
je crois avoir trouvé le probleme

j'ai oublié la modif n°5
celle ci
Code
Look for

                     'image' => 'location.gif',
                     'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),
                     'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),
                                         array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')))),
               array('title' => BOX_HEADING_CUSTOMERS,

add bellow

               // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 5 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('customers.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 5 of 10


j'arrive maintenant sur une autre erreur
Code
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/www/admin/includes/languages/french.php:2) in /home/xxxxx/www/admin/includes/functions/general.php on line 90


je continu donc mes recherches d'erreurs
Mauricio
Visiblement il manque une partie dans ton fichier index.php wink.gif
Cette partie est indiquée dans le readme mais pas dans le fichier fourni avec la contrib...

Il faut rajouter la partie suivante en dessous de la ligne 76 :

Code
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 5 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('customers.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 5 of 10

L'erreur doit apparaître quand la contrib cherche à accéder au champ access.

[EDIT] Nos messages se sont croisés... Je regarde ta nouvelle erreur...

@+
Mauricio
Mauricio
Tu dois avoir une ligne vide avant la première balise <?php ou après la dernière balise ?>.
Donc vérifies ton fichier /includes/languages/french.php.

Ce problème est expliqué dans la FAQ => ici.

@+
Mauricio
dero
En effet Mauricio merci pour ton aide , tu as raison

J'avais une ligne vide après la dernière balise ?>

On avance mais maintenant j'arrive sur une page blanche

en tapant
Code
http://www.toto.fr/admin/login_admin.php


j'obtient
Code
Redirection de page incorrecte
Firefox a détecté que le serveur redirige la demande pour cette adresse d'une manière qui n'aboutira pas.
    
    *   La cause de ce problème peut être la désactivation ou le refus
          des cookies.


je continu donc les recherches
dero
Bonjour

je n'arrive toujours pas a acceder a mon Admin

Dans mon explorateur je saisie
Code
http://www.toto.fr/admin


j'arrive sur une demande de mot de passe "htpassword"

je le saisi tout est ok

et je suis ensuite redirigé vers
Code
http://www.toto.fr/admin/login.php


et la page login ne s'affiche pas

juste une page blanche

Est ce un probleme d'autorisation ?
dero
Merci pour ta reponse

maintenant je n'arrive meme pas au htpassword

Voila ce que j'ai comme message

Code
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, postmaster@www.toto.fr and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
dero
merci pour votre aide

mais j'abandonne l'installation de "Administration level account with categories 2.3.1"

Si vous connaissez une contrib un peu plus facile a installer ca m'interresse

Je cherche juste a donner acces au fichiers des commandes et seulement celui la a une tierce personne

merci
dero
Bon je m'y suis quand meme remis je ne peux pas rester sur un echec

Maintenaant j'ai acces a la page qui me demande l'adresse mail ei le mot de passe

Mais il ne veux pas de mon mot de passe

1er Est ce que c'est parce que j'ai installé admin_level ? qu'il aurait changé mon MDP

2 eme Y a t'il un nouveau mot de passe a utiliser avec cette contrib ?

ou

3 eme faut t' il que je fasse comme leorlindel le preconise dans un autre poste c'est a dire faire ceci ?
Citation
Tu vas dans ta console phpMyAdmin dans la table "administrators", tu supprimes les champs qui s'y trouvent. Tu te connectes sur ta console d'administration de ta boutique (admin) tu entres un login et un MDP, ta base n'en ayant pas, va te demander d'un créer un. Et voilà.

merci
dero
j ai trouvé dans la base sql dans la table ADMIN

adresse mail : admin@localhost
mot de passe : admin

Et j'ai installé les fichiers "index.php" et "application_top_php" de la contrib et non pas les miens modifiés car avec les miens modifiés ça ne fonctionnait pas

et maintenant tout fonctionne



Ceci est une version "bas débit" de notre forum. Pour voir la version complète avec plus d'informations, la mise en page et les images, veuillez cliquer ici.
Invision Power Board © 2001-2013 Invision Power Services, Inc.