Tom's Guide > Forum > Programmation > erreur php sur ligne introuvable

erreur php sur ligne introuvable

Forum Programmation : erreur php sur ligne introuvable

TomsGuide.com : 800 000 inscrits répondent à toutes vos questions high-tech et informatique. Pour obtenir de l'aide, inscrivez-vous gratuitement !
Mot :    Pseudo :           
 

Bonjour,

je travaille sur un site web. Je suis un vrai débutant. J'ai une parse error qui me renvoie à un fichier .php avec une erreur line 50.
Or dans le bloc note du fichier en question, il n'y a que 3 lignes et il n'y a rien ligne 50. Comment est-ce possible?

Du coup je ne sais même pas à quel endroit se trouve mon erreur. je n'ai trouvé aucune réponse à un pb de ce type en parcourant divers forums. Merci de votre aide.

Liens sponsorisés
Inscrivez-vous ou connectez-vous pour masquer ceci.

Si dans ce fichier tu inclu un autre fichier (fonction include ou require) l'erreur peut être situé dans ce fichier.

Sinon les lignes ne correspondent pas toujours : par exemple si tu as un problème d'accolade non fermé, ca peut te donné une erreur à la dernière ligne du code.

Répondre à ThibB

Merci pour ta réponse rapide. Mais apres verification il n'y a pas d'accolade ni de fichier inclu dans le script. Je vais continuer à chercher...

Répondre à greenlagoon

Et si tu faisais voir ta source ?

Répondre à bosco@idn

c'est un script pour un site os commerce. Une des contributions me demande de rajouter la ligne : define('FILENAME_EXTRA_FIELDS','extra_fields.php');<br><br> Je l'ai rajoutée à la fin. Sans cette ligne je n'ai pas d'erreur pour ce fichier.

Voila la source,

<?php
/*
$Id: filenames.php,v 1.1 2003/06/20 00:18:30 hpdl Exp $

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

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// define the filenames used in the project
define('FILENAME_BACKUP', 'backup.php');
define('FILENAME_BANNER_MANAGER', 'banner_manager.php');
define('FILENAME_BANNER_STATISTICS', 'banner_statistics.php');
define('FILENAME_CACHE', 'cache.php');
define('FILENAME_CATALOG_ACCOUNT_HISTORY_INFO', 'account_history_info.php');
define('FILENAME_CATEGORIES', 'categories.php');
define('FILENAME_CONFIGURATION', 'configuration.php');
define('FILENAME_COUNTRIES', 'countries.php');
define('FILENAME_CURRENCIES', 'currencies.php');
define('FILENAME_CUSTOMERS', 'customers.php');
define('FILENAME_DEFAULT', 'index.php');
define('FILENAME_DEFINE_LANGUAGE', 'define_language.php');
define('FILENAME_FILE_MANAGER', 'file_manager.php');
define('FILENAME_GEO_ZONES', 'geo_zones.php');
define('FILENAME_LANGUAGES', 'languages.php');
define('FILENAME_MAIL', 'mail.php');
define('FILENAME_MANUFACTURERS', 'manufacturers.php');
define('FILENAME_MODULES', 'modules.php');
define('FILENAME_NEWSLETTERS', 'newsletters.php');
define('FILENAME_ORDERS', 'orders.php');
define('FILENAME_ORDERS_INVOICE', 'invoice.php');
define('FILENAME_ORDERS_PACKINGSLIP', 'packingslip.php');
define('FILENAME_ORDERS_STATUS', 'orders_status.php');
define('FILENAME_POPUP_IMAGE', 'popup_image.php');
define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php');
define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php');
define('FILENAME_REVIEWS', 'reviews.php');
define('FILENAME_SERVER_INFO', 'server_info.php');
define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php');
define('FILENAME_SPECIALS', 'specials.php');
define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php');
define('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php');
define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php');
define('FILENAME_TAX_CLASSES', 'tax_classes.php');
define('FILENAME_TAX_RATES', 'tax_rates.php');
define('FILENAME_WHOS_ONLINE', 'whos_online.php');
define('FILENAME_ZONES', 'zones.php'); define('FILENAME_EXTRA_FIELDS','extra_fields.php');<br><br>?>

Encore une fois dans le bloc note tout est aggloméré, il n'y a que 3 lignes. Désolé si je suis un peu boulet.

Merci.

Répondre à greenlagoon

retire tes 2 <br><br> a la fin.

Répondre à okinou
Tom's Guide > Forum > Programmation > erreur php sur ligne introuvable
Aller à :

Il y a 1917 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.

Attention

Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois.
Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.

Répondre Annuler
Liens