Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

chrisgeek

Archived
  • Posts

    63
  • Joined

  • Last visited

Profile Information

chrisgeek's Achievements

  1. Here is the warning I've been getting - please let me know if anyone has a suggestion: Warning: require(index.php) [function.require]: failed to open stream: No such file or directory in /home/geekfitt/public_html/root.php on line 145 Thanks, Chris
  2. Can someone suggest a person/company I could call and pay by the hour who is an expert on OSCommerce? Thank you! Chris
  3. Can you see my website? Nothing shows up when I try to view it. More info: I have STS installed. I believe that my index is stored in the languages/english/ file. Which index should be in the root folder? And should it be an index.php or an index.html? Thanks for your help!
  4. Hello All, I wonder if someone can help with a small emergency. I haven't edited my store in a long time, and now that I have, I think I've ruined it. My index is not showing up, and I don't think I backed up properly. Here's my basic question: Where is the index file supposed to be saved? Should there be one in the main ftp folder (on mine it's "public_html") or should it be under languanges/english/index.php.html? Please help. This is my website: geekfitters.com. There's a free t-shirt for everyone who helps fix this. Thanks, Chris
  5. HTC doesn't add a link... it just changes the base reference so that all links written like this (./index.html) are equal to whatever is written in the base href. If someone has a fix, please let us know. Chris
  6. Free Geekfitters t-shirt to the person who can help me fix this. That's right, I'll send a free awesome Geekfitters shirt of your choice to whoever can help me fix this. My Affiliatte mod isn't working, and I'm guessing it can be solved 1 of 3 ways. 1. Add a class for affiliate files: Does anyone know how to write a class script? 2. Somehow edit the root file to include the affiliate files. Any thoughts? 3. Fix the excludes function. For some reason, when I try to exclude affiliate files, they aren't named right. For example: affiliate_help_1.php comes up in the Excludes list as affiliate_help1.php. Is there any way to fix this? This is the actual error I get when clicking on the affiliate_help_1.html file: Warning: require(affiliate_help_1.php) [function.require]: failed to open stream: No such file or directory in /home/geekfitt/public_html/root.php on line 145 Fatal error: require() [function.require]: Failed opening required 'affiliate_help_1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/geekfitt/public_html/root.php on line 145 Thank you in advance. Best, Chris
  7. Anyone know where I could pay to get the Affiliate Program working? Chris
  8. Hello Mark, I'm getting an error with osC Affiliate (see link below). I wonder if you could make a suggestion. I've followed your convo with Melsy, but I'm using a different affiliate program and getting a particular error. When I click on any pop-up boxes I get this error: Warning: require(affiliate_help_1.php) [function.require]: failed to open stream: No such file or directory in /home/geekfitt/public_html/root.php on line 145 Fatal error: require() [function.require]: Failed opening required 'affiliate_help_1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/geekfitt/public_html/root.php on line 145 Any suggestions? Thank you in advance. Best, Chris Here's the link to the mod: http://www.oscommerce.com/community/contri...earch,affiliate
  9. I wonder if anyone could help with this error: Warning: require(affiliate_help_1.php) [function.require]: failed to open stream: No such file or directory in /home/geekfitt/public_html/root.php on line 145 Fatal error: require() [function.require]: Failed opening required 'affiliate_help_1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/geekfitt/public_html/root.php on line 145 Here's my root file, if it matters: <?php /* //---------------------------------------------------------------------------- // Copyright © 2006-2007 Asymmetric Software - Innovation & Excellence // Author: Mark Samios // [url="http://www.asymmetrics.com"]http://www.asymmetrics.com[/url] // SEO-G Root page // Main handler script // Includes part of the includes/application_top.php from osCommerce to // initialize the database. //---------------------------------------------------------------------------- // Script is intended to be used with: // osCommerce, Open Source E-Commerce Solutions // [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] // Copyright © 2003 osCommerce //---------------------------------------------------------------------------- // Released under the GNU General Public License //---------------------------------------------------------------------------- // MAKE SURE THE FOLLOWING SECTION IS COPIED DIRECTLY FROM YOUR OWN // catalog\includes\application_top.php and then set the $g_relpath, $g_server // variables in this file such that: //---------------------------------------------------------------------------- if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); $g_relpath = HTTP_SERVER . DIR_WS_CATALOG; $g_server = HTTP_SERVER; } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); $g_relpath = HTTPS_SERVER . DIR_WS_CATALOG; $g_server = HTTPS_SERVER; } //---------------------------------------------------------------------------- // Also note the $request_type has to be determined accurately between // SSL and NON-SSL pages. // See also documentation for details for this line: // $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; //---------------------------------------------------------------------------- */ //---------------------------------------------------------------------------- //-MS- Beginning of application_top.php section //---------------------------------------------------------------------------- // start the timer for the page parse time log define('PAGE_PARSE_START_TIME', microtime()); // set the level of error reporting error_reporting(E_ALL & ~E_NOTICE); // check if register_globals is enabled. // since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. // >>> BEGIN REGISTER_GLOBALS // if (function_exists('ini_get')) { // ini_get('register_globals') or exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.'); // } // <<< END REGISTER_GLOBALS // Set the local configuration parameters - mainly for developers if (file_exists('includes/local/configure.php')) include('includes/local/configure.php'); // include server parameters require('includes/configure.php'); if (strlen(DB_SERVER) < 1) { if (is_dir('install')) { header('Location: install/index.php'); } } // define the project version define('PROJECT_VERSION', 'osCommerce 2.2-MS2'); // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); $g_relpath = HTTP_SERVER . DIR_WS_CATALOG; $g_server = HTTP_SERVER; } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); $g_relpath = HTTPS_SERVER . DIR_WS_CATALOG; $g_server = HTTPS_SERVER; } // include the list of project filenames require(DIR_WS_INCLUDES . 'filenames.php'); // include the list of project database tables require(DIR_WS_INCLUDES . 'database_tables.php'); // customization for the design layout define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125) // include the database functions require(DIR_WS_FUNCTIONS . 'database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } //---------------------------------------------------------------------------- //-MS- End of application_top.php section //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- // SEO-G Section starts here. This part is required for proper operation // Do not override the code below //---------------------------------------------------------------------------- require(DIR_WS_CLASSES . 'seo_url.php'); $g_seo_url = new seoURL; $osc_url = $osc_params = $osc_parse = ''; if( $g_seo_url->get_osc_url($g_server . $_SERVER['REQUEST_URI'], $osc_url, $osc_params, $osc_parse) ) { $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'] = $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = $osc_parse['path']; if(basename($_SERVER['PHP_SELF']) == 'root.php' ) { echo '<b>SEO-G Error</b>: Invalid Self-Request - Check recorded URLs'; exit(); } $tmp_array = array(); for($i=0, $j=count($osc_params); $i<$j; $i++ ) { $array_equal = explode('=', $osc_params[$i]); if( is_array($array_equal) ) { if( isset($array_equal[1]) ) { $tmp_array[$array_equal[0]] = $array_equal[1]; } else { $tmp_array[$array_equal[0]] = ''; } } } $tmp_array = array_merge($HTTP_GET_VARS,$tmp_array); // Synchronize global arrays. $HTTP_GET_VARS = $_GET = $tmp_array; unset($tmp_array); // Synchronize query string variables $HTTP_SERVER_VARS['QUERY_STRING'] = $_SERVER['QUERY_STRING'] = implode('&',$osc_params); $g_script = basename($PHP_SELF); // Signal SEO-G translation. $g_seo_flag = true; require(basename($PHP_SELF)); } elseif( file_exists(basename($osc_parse['path']))) { $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'] = $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = $osc_parse['path']; if(basename($_SERVER['PHP_SELF']) == 'root.php' ) { echo '<b>SEO-G Error</b>: Invalid Self-Request, passed URI Request: ' . $_SERVER['REQUEST_URI']; exit(); } $g_script = basename($PHP_SELF); $g_seo_flag = true; require(basename($osc_parse['path'])); } else { // Script not found. Initiate redirection header("HTTP/1.1 " . SEO_DEFAULT_ERROR_HEADER); header('Location: ' . $g_relpath . SEO_DEFAULT_ERROR_REDIRECT); //echo STORE_NAME . ' - Page was moved'; } exit(); ?>
  10. Hey Bill, I am using the osC Affiliate (http://www.oscommerce.com/community/contributions,158/category,all/search,affiliate). And my problem isn't the box as far as I know, it's the pop-ups. Do you know how to get them to work? Thank you in advance. Best, Chris
  11. I installed 4.5.2... I believe it was philbar's Apr 9th version. I've also added HTC using your instructions.
  12. Hello All, I've installed the Affiliates mod, and I can't seem to get the pop-ups to work. I've read Bill and other weigh in, but I can't understand exactly what they did to fix it. For example, I don't know how to create a new module for sts_mypagename.php. Can anyone explain it to an idiot like me? Best, Chris
  13. Thank you Cunga Lunga for your advice. I have another problem. I can't get any of the pop-ups to work. I have STS. I've looked at the other posts here regarding STS and Pop-ups, but I still can't understand exactly what these other people did to fix this problem. If anyone has gotten this to work, please explain it to me. I get this warning when I click on some of the pop-ups: Warning: require(affiliate_help_18.php) [function.require]: failed to open stream: No such file or directory in /home/geekfitt/public_html/root.php on line 145 Fatal error: require() [function.require]: Failed opening required 'affiliate_help_18.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/geekfitt/public_html/root.php on line 145 And sometimes I get the problem that other people were talking about, which is some pop-ups just lead to a blank template. I also have SEO-G installed. Thank you in advance! Best, Chris
  14. Hello All, Quick question about Google Analytics. There is a module that helps us to install google analytics. I only have one template for my whole site... could I just add the google analytics code to that template, instead of installing the module? Thank you in advance for your help. Best, Chris
×
×
  • Create New...