Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: PHP Fatal error: 1064

    Hi Lat9

    Yeah! My file has additional lines of code for CEON URI MAPPING but I ran the file in BeyomdCompare and the relevant lines are the exactly the same - but well spotted!

    Cheers
    Brinley

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,879
    Plugin Contributions
    96

    Default Re: PHP Fatal error: 1064

    Could you post the code on/around your file's line 169 (say 20-50 lines before and after)?

  3. #3
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: PHP Fatal error: 1064

    Hi Lat9

    Here u go

    Code:
    <?php
      echo $form;
      echo zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
      echo zen_hide_session_id();
    ?>
    <?php
      // draw cPath if known
      if (!$getoption_set) {
        echo zen_draw_hidden_field('cPath', $cPath);
      } else {
        // draw manufacturers_id
        echo zen_draw_hidden_field($get_option_variable, $_GET[$get_option_variable]);
      }
    
      // draw music_genre_id
      if (isset($_GET['music_genre_id']) && $_GET['music_genre_id'] != '') echo zen_draw_hidden_field('music_genre_id', $_GET['music_genre_id']);
    
      // draw record_company_id
      if (isset($_GET['record_company_id']) && $_GET['record_company_id'] != '') echo zen_draw_hidden_field('record_company_id', $_GET['record_company_id']);
    
      // draw typefilter
      if (isset($_GET['typefilter']) && $_GET['typefilter'] != '') echo zen_draw_hidden_field('typefilter', $_GET['typefilter']);
    
      // draw manufacturers_id if not already done earlier
      if ($get_option_variable != 'manufacturers_id' && isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) {
        echo zen_draw_hidden_field('manufacturers_id', $_GET['manufacturers_id']);
      }
    
    // BEGIN CEON URI MAPPING 2 of 2
        }
    // END CEON URI MAPPING 2 of 2
    
      // draw sort
      echo zen_draw_hidden_field('sort', $_GET['sort']);
    
      // draw filter_id (ie: category/mfg depending on $options)
      if ($do_filter_list) {
        echo zen_draw_pull_down_menu('filter_id', $options, (isset($_GET['filter_id']) ? $_GET['filter_id'] : ''), 'onchange="this.form.submit()"');
      }
    
      if (defined('PRODUCT_LISTING_LAYOUT_STYLE_CUSTOMER') and PRODUCT_LISTING_LAYOUT_STYLE_CUSTOMER == '1') {
        echo '<div id="viewControl">' . zen_draw_pull_down_menu('view', array(array('id'=>'rows','text'=>PRODUCT_LISTING_LAYOUT_ROWS),array('id'=>'columns','text'=>PRODUCT_LISTING_LAYOUT_COLUMNS)), (isset($_GET['view']) ? $_GET['view'] : (defined('PRODUCT_LISTING_LAYOUT_STYLE')? PRODUCT_LISTING_LAYOUT_STYLE: 'rows')), 'onchange="this.form.submit()"') . '</div>';
      }
      // draw alpha sorter
      require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCT_LISTING_ALPHA_SORTER));
    ?>
    </form>
    <?php
      }
    ?>
    <br class="clearBoth" />
    
    <?php
    /**
     * require the code for listing products
     */
     require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php');
    ?>
    
    <?php
    // categories_description - moved by brinley
        if ($current_categories_description != '') {
    ?>
    <div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description;  ?></div>
    <?php } // categories_description ?>
    
    <?php
    //// bof: categories error
    if ($error_categories==true) {
      // verify lost category and reset category
      $check_category = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_id='" . $cPath . "'");
      if ($check_category->RecordCount() == 0) {
        $new_products_category_id = '0';
        $cPath= '';
      }
    ?>
    
    <?php
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MISSING);
    
    while (!$show_display_category->EOF) {
    ?>
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php } ?>
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
     * display the Special Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php } ?>
    Cheers
    Brinley

  4. #4
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: PHP Fatal error: 1064

    line: 169 is

    Code:
      $check_category = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_id='" . $cPath . "'");

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,879
    Plugin Contributions
    96

    Default Re: PHP Fatal error: 1064

    Check your PMs

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,879
    Plugin Contributions
    96

    Default Re: PHP Fatal error: 1064

    I tried entering the SQL query directly into my localhost testbed's phpMyAdmin
    Code:
    SELECT categories_id FROM categories WHERE categories_id='-1';
    which returned an empty result, not an error. Good old line 169
    Code:
      $check_category = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_id='" . $cPath . "'");
    appears, to my eyes, to be providing the correct formatting.

    There's something else going on, but I'm not sure what ... yet.

  7. #7
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: PHP Fatal error: 1064

    I'm not entirely with you on this as my php skills are definitely little league.

    I assumed that the coding is OK and that either CEOn or something I added was causing the issue - but lost as to how to determine what exactly

 

 

Similar Threads

  1. inscrutable PHP Error 1064 install failure
    By cyberbaffled in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 21 Mar 2015, 05:16 PM
  2. v151 PHP Fatal error: 1064:You have an error in your SQL syntax
    By chaptech in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2015, 07:16 PM
  3. PHP Fatal error: 1064:You have an error in your SQL syntax
    By uswebworx in forum General Questions
    Replies: 11
    Last Post: 19 Apr 2012, 09:17 AM
  4. 1064 sql error from mod in split_page_results.php ?
    By bonnit in forum Basic Configuration
    Replies: 2
    Last Post: 9 Aug 2011, 05:13 PM
  5. Fatal error: mysql error (1064 error) -- v1.0-alpha
    By Dale Schibbelhut in forum General Questions
    Replies: 9
    Last Post: 18 Nov 2010, 08:08 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