Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    261
    Plugin Contributions
    0

    Default Error when calling Sidebox Anywhere Mod

    Hello, Drbyte,

    many thanks for your great mould.

    May I ask for your suggestion on my problem?

    my site is www.example.com, located at the root directory, i.e. /, and and my blog site http://blog.example.com located at sub-dir, i.e. /blog/

    on my blog site http://blog.example.com, i want to call out a sidebox , say whats_new.php,
    my setting is as folows:
    <?php $zcSBmodule = 'whats_new.php';
    $zcSBlayout = 'left';
    require ("/MYHOSTDIR/html/includes/modules/sideboxes/single_sidebox.php");?>
    but error says:
    HTML Code:
    Warning: require(/includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /MYHOSTDIR/html/includes/modules/sideboxes/single_sidebox.php on line 41
    then i found the problem and fixed it by edit singel_sidebox.php as follows:
    change require('/includes/application_top.php');
    to require('/MYHOSTDIR/html/includes/single_sidebox.php');

    however, more errors occured:
    HTML Code:
    Warning: require(includes/templates/template_default/templates/tpl_zc_install_suggested_default.php) [function.require]: failed to open stream: No such file or directory in /MYHOSTDIR/html/includes/application_top.php on line 68
    
    Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_zc_install_suggested_default.php' (include_path='.:/usr/local/php5/lib/php') in /MYHOSTDIR/html/includes/application_top.php on line 68
    could you please advise your suggestion? thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Error when calling Sidebox Anywhere Mod

    Quote Originally Posted by Jerry5763837 View Post
    require ("/MYHOSTDIR/html/includes/modules/sideboxes/single_sidebox.php");?>
    Your problem is that you've put the single_sidebox.php file way down inside your sideboxes folder, when it should be in the root of your Zen Cart folder.

    Move the file to /MYHOSTDIR/html/single_sidebox.php and require it from that location, and things should be fine.
    (You'll want to undo all the edits you made to the single_sidebox.php file itself.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2008
    Posts
    261
    Plugin Contributions
    0

    Default Re: Error when calling Sidebox Anywhere Mod

    hello, Drbyte,

    Really sorry for my recklessness.

    I re-set as per your suggestion, but ended up as a blank page.
    after i set error reporting to TURE,
    HTML Code:
    $startingDir = getcwd();
      $zcDir = realpath(dirname(__FILE__));
      chdir($zcDir);
    	define('STRICT_ERROR_REPORTING', ture);
    so that can see errors. so many error displayed as follows.

    Many appreciated for your furhter suggestion.

    HTML Code:
    Warning: Cannot modify header information - headers already sent by (output started at /MY_HOST_DIR/html/blog/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:221) in /MY_HOST_DIR/html/includes/functions/functions_general.php on line 753
    
    Notice: A session had already been started - ignoring session_start() in /MY_HOST_DIR/html/includes/functions/sessions.php on line 108
    
    Notice: Undefined index: seo_urls in /MY_HOST_DIR/html/includes/functions/html_output.php on line 24
    
    Notice: Undefined property: SEO_URL::$keep_in_memory in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 1073
    
    Notice: Undefined property: SEO_URL::$keep_in_memory in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 1073
    
    Notice: Undefined property: SEO_URL::$keep_in_memory in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 1073
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Constant TEXT_INDEX_NEWS_MORE already defined in /MY_HOST_DIR/html/includes/languages/english.php on line 106
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Constant OFFICE_IP_TO_HOST_ADDRESS already defined in /MY_HOST_DIR/html/includes/languages/english/shop/email_extras.php on line 52
    
    Notice: Constant HEADER_SEARCH_BUTTON already defined in /MY_HOST_DIR/html/includes/languages/english/button_names.php on line 39
    
    Warning: Cannot modify header information - headers already sent by (output started at /MY_HOST_DIR/html/blog/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:221) in /MY_HOST_DIR/html/includes/init_includes/init_templates.php on line 78
    
    Notice: Constant TEXT_CONTACT_INFORMATION_SIDEBOX already defined in /MY_HOST_DIR/html/includes/languages/english/extra_definitions/contact_information_sidebox_defines.php on line 13
    
    Notice: Constant ENTRY_EMAIL_ADDRESS_CONFIRM already defined in /MY_HOST_DIR/html/includes/languages/english/extra_definitions/shop/create_account.php on line 6
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: _sid in /MY_HOST_DIR/html/includes/classes/seo.url.php on line 322
    
    Notice: Undefined variable: navigation in /MY_HOST_DIR/html/includes/autoload_func.php on line 90
    
    Fatal error: Call to a member function add_current_page() on a non-object in /MY_HOST_DIR/html/includes/autoload_func.php on line 90

 

 

Similar Threads

  1. Sidebox Anywhere mod - Please Help
    By TJR Stores in forum Addon Sideboxes
    Replies: 62
    Last Post: 28 Dec 2011, 09:19 PM
  2. More than One Sidebox Anywhere Mod
    By HDuane in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 10 Jan 2010, 12:41 AM
  3. Replies: 1
    Last Post: 21 Jan 2009, 04:36 PM
  4. CSV mod anywhere?
    By TrulieBliss in forum General Questions
    Replies: 1
    Last Post: 22 Sep 2008, 01:44 PM
  5. Fatal error when calling count_contents in checkout
    By rbobzin in forum General Questions
    Replies: 13
    Last Post: 16 Nov 2007, 09:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg