Page 1 of 1

[Zen Cart] www same as public_html?

Posted: Tue Sep 09, 2008 6:01 pm
by savewizard
do I include the entire folder of www in public_html or just the files in www go into public_html?

Also this line in the instructions

Code: Select all

/** * load the autoloader interpreter code. */

require('includes/autoload_func.php');


I followed the steps, but how do I know if it is installed?

Thanks
Jason

[Zen Cart] Re: www same as public_html?

Posted: Tue Sep 09, 2008 6:07 pm
by inveo
savewizard wrote:do I include the entire folder of www in public_html or just the files in www go into public_html?


No, just the files (www only indicate root folder).

savewizard wrote:Also this line in the instructions

/** * load the autoloader interpreter code. */ require('includes/autoload_func.php');

I followed the steps, but how do I know if it is installed?


If you old URLs are transformed to new format and you dont se any error message, Magic SEO URL is installed properly.

[Zen Cart] Re: www same as public_html?

Posted: Tue Sep 09, 2008 6:10 pm
by savewizard
actually I'm sorry I missed typing a line I thought in my head this line

Code: Select all

/** * load the autoloader interpreter code. */ require('includes/autoload_func.php');

was not in includes/application_top.php file


also the URLs are not rewritten,

it is http://www.savewizard.com

[Zen Cart] Re: www same as public_html?

Posted: Tue Sep 09, 2008 6:22 pm
by inveo
You are likely using older version than 1.3.x. Please post here your application_top.php file in this case.

Re: www same as public_html?

Posted: Tue Sep 09, 2008 6:35 pm
by savewizard
I'm using 1.3.8

Code: Select all

<?php

/**

 * application_top.php Common actions carried out at the start of each page invocation.

 *

 * Initializes common classes & methods. Controlled by an array which describes

 * the elements to be initialised and the order in which that happens.

 * see {@link  http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.

 *

 * @package initSystem

 * @copyright Copyright 2003-2007 Zen Cart Development Team

 * @copyright Portions Copyright 2003 osCommerce

 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

 * @version $Id: application_top.php 7470 2007-11-24 20:54:50Z drbyte $

 */

/*

 * turn off magic-quotes support, for both runtime and sybase, as both will cause problems if enabled

 */

set_magic_quotes_runtime(0);

if (@ini_get('magic_quotes_sybase') != 0) @ini_set('magic_quotes_sybase', 0);

/**

 * boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only.

 */

define('DEBUG_AUTOLOAD', false);

/**

 * boolean used to see if we are in the admin script, obviously set to false here.

 */

define('IS_ADMIN_FLAG', false);

/**

 * integer saves the time at which the script started.

 */

define('PAGE_PARSE_START_TIME', microtime());

//  define('DISPLAY_PAGE_PARSE_TIME', 'true');

@ini_set("arg_separator.output","&");

/**

 * Set the local configuration parameters - mainly for developers

 */

if (file_exists('includes/local/configure.php')) {

  /**

   * load any local(user created) configure file.

   */

  include('includes/local/configure.php');

}

/**

 * set the level of error reporting

 *

 * Note STRICT_ERROR_REPORTING should never be set to true on a production site. <br />

 * It is mainly there to show php warnings during testing/bug fixing phases.<br />

 * note for strict error reporting we also turn on show_errors as this may be disabled<br />

 * in php.ini. Otherwise we respect the php.ini setting

 *

 */

if (defined('STRICT_ERROR_REPORTING') && STRICT_ERROR_REPORTING == true) {

  @ini_set('display_errors', '1');

  error_reporting(E_ALL);

} else {

  error_reporting(0);

}

/**

 * check for and include load application parameters

 */

if (file_exists('includes/configure.php')) {

  /**

   * load the main configure file.

   */

  include('includes/configure.php');

} else {

  require('includes/templates/template_default/templates/tpl_zc_install_suggested_default.php');

  exit;

}

/**

 * if main configure file doesn't contain valid info (ie: is dummy or doesn't match filestructure, display assistance page to suggest running the installer)

 */

if (!defined('DIR_FS_CATALOG') || !is_dir(DIR_FS_CATALOG.'/includes/classes')) {

  require('includes/templates/template_default/templates/tpl_zc_install_suggested_default.php');

  exit;

}

/**

 * include the list of extra configure files

 */

if ($za_dir = @dir(DIR_WS_INCLUDES . 'extra_configures')) {

  while ($zv_file = $za_dir->read()) {

    if (preg_match('/\.php$/', $zv_file) > 0) {

      /**

       * load any user/contribution specific configuration files.

       */

      include(DIR_WS_INCLUDES . 'extra_configures/' . $zv_file);

    }

  }

  $za_dir->close();

}

$autoLoadConfig = array();

if (isset($loaderPrefix)) {

 $loaderPrefix = preg_replace('/[a-z_]^/', '', $loaderPrefix);

} else {

  $loaderPrefix = 'config';

}

$loader_file = $loaderPrefix . '.core.php';

require('includes/initsystem.php');

/**

 * determine install status

 */

if (( (!file_exists('includes/configure.php') && !file_exists('includes/local/configure.php')) ) || (DB_TYPE == '') || (!file_exists('includes/classes/db/' .DB_TYPE . '/query_factory.php')) || !file_exists('includes/autoload_func.php')) {

  require('includes/templates/template_default/templates/tpl_zc_install_suggested_default.php');

  header('location: zc_install/index.php');

  exit;

}

/**

 * load the autoloader interpreter code.

*/

require('includes/autoload_func.php');

/**

 * load the counter code

**/

// counter and counter history

  require(DIR_WS_INCLUDES . 'counter.php');



// get customers unique IP that paypal does not touch

$customers_ip_address = $_SERVER['REMOTE_ADDR'];

if (!isset($_SESSION['customers_ip_address'])) {

  $_SESSION['customers_ip_address'] = $customers_ip_address;

}


?>

[Zen Cart] Re: www same as public_html?

Posted: Tue Sep 09, 2008 6:46 pm
by inveo
Your file looks fine. Please follow installation instructions carefully. Line of code you were talking is missing is in your file presented.

[Zen Cart] Re: www same as public_html?

Posted: Wed Sep 10, 2008 6:30 pm
by savewizard
well I was being lazy the find function did not work on the code, it still isn't but I did find the line of code by manually looking with my eyes
Thanks

Cart  
(empty)

Cart Check out  »

Prices are tax inclusive.

The VAT rate for your country (US) * is 0,0 % because it is not a member of the European Union (EU).

* Please create an account if your country does not match.

Community feed
  • [phpBB3] AJAX Userinfo Extension
    Hi! I'm having trouble with this extension: https://www.phpbb.com/customise/db/exte ... _userinfo/ I tried asking support from the author but for no avail, since now. My request for support...
    by Lord Phobos
  • [phpBB3] Upgrade to phpBB 3.2.3
    Hello.. after Upgrade to phpBB 3.2.3 I am getting this message.. How can I solve this issue..? Thank you
    by ingbrzy
  • [phpBB3] URL path changed
    Hello.. I have changed my site path after moving to new hosting and now can not activate SEO module.. new path http://www.miuios.cz/domains/miuios.cz/ could you help me? thank you
    by ingbrzy2
  • [phpBB3] Chinese language support
    Hi, i bought magic seo for phpbb because it says that it supports a wide range of alphabets and UTF-8, however i found that it doesn't. I'm preparing a website in Chinese and all forums having a...
    by iwsmike
  • [WP2PS] Yoast SEO plugin
    Thanks for your support installing the PS-WP integration. However there is some errors when PS-WP integration is activated. 1. Error generating sitemap with Yoas SEO plugin (it disappears when...
    by argidomin
Join our support forum » Pre-Sales Questions »
Featured Testimonials

We have a fully customizable website based in osCommerce, we work with it since our start in 2005. When we want to expand our business to other countries near Spain, we know that we would have several problems with SEO and Google. We found Magic SEO URLs luckily and in fact Magic SEO URLs provide us a complete solution to solve our...

Ruben, the owner of MASmuscolo

Skeptical at first as I am with all new purchases that can dramatically effect traffic, but this one comes highly recommended. And not just for the product, the support is second to none and all issues are dealt with politely and efficiently. Top Marks!

Phillip, the owner of Sexy Ladies Fancy Dress Costumes

More Testimonials »