Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Please Help, Urgent!

    I'm getting the following 3 errors on main page of my site:

    Warning: main(DIR_WS_INCLUDESapplication_bottom.php): failed to open stream: No such file or directory in /home/content/c/a/r/cardsbymartin/html/index.php on line 12

    Warning: main(DIR_WS_INCLUDESapplication_bottom.php): failed to open stream: No such file or directory in /home/content/c/a/r/cardsbymartin/html/index.php on line 12

    Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESapplication_bottom.php' (include_path='.:/usr/local/lib/php') in /home/content/c/a/r/cardsbymartin/html/index.php on line 12

    So it does not like line 12 of the index.php, for some reason...meanwhile the site does not work...Any ideas???
    Thanks in advance for any suggestions!

    Index.php
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>

    </head>


    <body>
    <?php /**
    * Load general code run before page closes
    */
    ?><?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> tag in the on_load="" parameter.
    * Looking in "/includes/modules/pages" for files named "on_load_*.js"
    */
    $directory_array = $template-&gt;get_template_part(DIR_WS_MODULES . 'pages/' . $current_page_base, '/^on_load_/', '.js');
    foreach ($directory_array as $value) { $onload_file = DIR_WS_MODULES . 'pages/' . $current_page_base . '/' . $value;
    $read_contents='';
    $lines = @file($onload_file);
    foreach($lines as $line) {
    $read_contents .= $line;
    }
    $za_onload_array[] = $read_contents;
    }
    /**
    * now read "includes/templates/TEMPLATE/jscript/on_load/on_load_*.js", which would be site-wide settings
    */
    $directory_array=array();
    $tpl_dir=$template-&gt;get_template_dir('.js', DIR_WS_TEMPLATE, 'jscript/on_load', 'jscript/on_load_');
    $directory_array = $template-&gt;get_template_part($tpl_dir ,'/^on_load_/', '.js');
    foreach ($directory_array as $value) { $onload_file = $tpl_dir . '/' . $value;
    $read_contents='';
    $lines = @file($onload_file);
    foreach($lines as $line) {
    $read_contents .= $line;
    }
    $za_onload_array[] = $read_contents;
    }
    // set $zc_first_field for backwards compatibility with previous version usage of this var
    if (isset($zc_first_field) &amp;&amp; $zc_first_field !='') $za_onload_array[] = $zc_first_field;
    $zv_onload = "";
    if (isset($za_onload_array) &amp;&amp; count($za_onload_array)&gt;0) $zv_onload=implode(';',$za_onload_array);
    //ensure we have just one ';' between each, and at the end
    $zv_onload = str_replace(';;',';',$zv_onload.';');
    // ensure that a blank list is truly blank and thus ignored.
    if (trim($zv_onload) == ';') $zv_onload='';
    /**
    * Define the template that will govern the overall page layout, can be done on a page by page basis
    * or using a default template. The default template installed will be a standard 3 column layout. This
    * template also loads the page body code based on the variable $body_code.
    */
    require($template-&gt;get_template_dir('tpl_main_page.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_main_page.php');
    ?&gt;

    <br>

    </body>
    </html>

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Please Help, Urgent!

    Code:
    Warning: main(DIR_WS_INCLUDESapplication_bottom.php): failed to open stream: No such file or directory in /home/content/c/a/r/cardsbymartin/html/index.php on line 12
    It only errors in that file on that line but is spawned by the lack of or a corrupt application_bottom.php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: Please Help, Urgent!

    It looks like there is a slash in DIR_WS_INCLUDES/application_bottom.php missing. Check your configure.php files for a trailing slash in the zencart folder definition.

  4. #4
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Please Help, Urgent!

    Thanks, Tino and Kobra, I'll check it out!

 

 

Similar Threads

  1. Reward Points Module Urgent Help Please Please!
    By dariocdj in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 7 Apr 2011, 02:59 AM
  2. *****please help: Urgent*****
    By louiepelon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Mar 2010, 08:53 AM
  3. Need help with color scheme - URGENT PLEASE HELP
    By nepton in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Nov 2008, 03:48 AM
  4. Help Urgent Please
    By Fluffy Bunny in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 5 Jun 2007, 02:33 PM
  5. Urgent Urgent help needed please
    By con-fused in forum General Questions
    Replies: 1
    Last Post: 12 Feb 2007, 09:41 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