chaostwin Posted January 6, 2005 Posted January 6, 2005 One of the instructions was to add the following lines into the 'application_top.php' (C:\AppServ\www\sites\oscommerce\catalog\includes\application_top.php) >> "Add to /catalog/includes/application_top.php // BOF: WebMakers.com Added: Header Tags Controller v1.0 require(DIR_WS_FUNCTIONS . 'header_tags.php'); // Clean out HTML comments from ALT tags etc. require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); // Also used by: WebMakers.com Added: FREE-CALL FOR PRICE // EOF: WebMakers.com Added: Header Tags Controller v1.0" The Error Message is: Warning: main(DIR_WS_FUNCTIONSfunctions/header_tags.php): failed to open stream: No such file or directory in c:\appserv\www\sites\oscommerce\catalog\includes\application_top.php on line 14 Warning: main(DIR_WS_FUNCTIONSfunctions/header_tags.php): failed to open stream: No such file or directory in c:\appserv\www\sites\oscommerce\catalog\includes\application_top.php on line 14 Fatal error: main(): Failed opening required 'DIR_WS_FUNCTIONSfunctions/header_tags.php' (include_path='.;c:\php4\pear') in c:\appserv\www\sites\oscommerce\catalog\includes\application_top.php on line 14 I checked all the instructions twice, but the file that could not be found (header_tags.php) is definitely in the functions directory, I also changed the path from DIR_WS_FUNCTIONS . 'header_tags.php' to the absolute path '/functions/header_tags.php' but still the same errormessage occures. Please Help !!! Greetz
boxtel Posted January 6, 2005 Posted January 6, 2005 One of the instructions was to add the following lines into the 'application_top.php' (C:\AppServ\www\sites\oscommerce\catalog\includes\application_top.php) >> "Add to /catalog/includes/application_top.php // BOF: WebMakers.com Added: Header Tags Controller v1.0 require(DIR_WS_FUNCTIONS . 'header_tags.php'); // Clean out HTML comments from ALT tags etc. require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); // Also used by: WebMakers.com Added: FREE-CALL FOR PRICE // EOF: WebMakers.com Added: Header Tags Controller v1.0" The Error Message is: Warning: main(DIR_WS_FUNCTIONSfunctions/header_tags.php): failed to open stream: No such file or directory in c:\appserv\www\sites\oscommerce\catalog\includes\application_top.php on line 14 Warning: main(DIR_WS_FUNCTIONSfunctions/header_tags.php): failed to open stream: No such file or directory in c:\appserv\www\sites\oscommerce\catalog\includes\application_top.php on line 14 Fatal error: main(): Failed opening required 'DIR_WS_FUNCTIONSfunctions/header_tags.php' (include_path='.;c:\php4\pear') in c:\appserv\www\sites\oscommerce\catalog\includes\application_top.php on line 14 I checked all the instructions twice, but the file that could not be found (header_tags.php) is definitely in the functions directory, I also changed the path from DIR_WS_FUNCTIONS . 'header_tags.php' to the absolute path '/functions/header_tags.php' but still the same errormessage occures. Please Help !!! Greetz <{POST_SNAPBACK}> you should define DIR_WS_FUNCTIONS in your configure.php file : define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); Treasurer MFC
chaostwin Posted January 6, 2005 Author Posted January 6, 2005 It is defined like that, because of that I tried the absolute path, but even then it didn`t work. greetz, Nic
Jack_mcs Posted January 6, 2005 Posted January 6, 2005 Make sure the code you added to application_top was added near the end of the file and not near the top. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.