Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    138
    Plugin Contributions
    2

    help question Error in Admin without Log

    Last night I kept getting a *category is disabled anytime I tried to add a new item. So I replaced the admin-->[product.php and that fixed it for everything except for my Product Book (which is the old version by Moku), as far as I know it was still working up until a week ago when I removed a couple of plugins which were not working and added updated versions of those which were not working. My guess is I need to reinstall some files because the databases are still intact. When I attempt to add a new product book item, I get the following error in the admin:

    Error!

    Unable to determine the page link!

    Function used:

    zen_href_link('', 'cPath=&action=new_product_preview', 'NONSSL')

    When I go to look at the logs there are non given at the time of the current error. Only thing I could think is there is something missing in the file: admin-->product_book.php which I will upload next.

    This plugin is integral to my online bookstore so any helpful suggestions are greatly appreciated.

  2. #2
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    138
    Plugin Contributions
    2

    Default Re: Error in Admin without Log

    PHP Code:
    product_book.php ( PHP script text ) 
    <?php //mod v4 dec 2007 jph the editor code is updated, 
    // and V4 control for book labels is by $_SESSION['book_language']
    // 2006-03-24 : moku

        
    require('includes/application_top.php');
        require(
    DIR_WS_LANGUAGES $_SESSION['language'] . '/' FILENAME_CATEGORIES '.php');
        require(
    DIR_WS_MODULES 'prod_cat_header_code.php');
        
    $action = (isset($_GET['action']) ? $_GET['action'] : '');

        if (
    zen_not_null($action)) {
            switch (
    $action) {
                case 
    'setflag':
                    if ( (
    $_GET['flag'] == '0') || ($_GET['flag'] == '1') ) {
                        if (isset(
    $_GET['pID'])) {
                            
    zen_set_product_status($_GET['pID'], $_GET['flag']);
                        }
                    }

                    
    zen_redirect(zen_href_link(FILENAME_CATEGORIES'cPath=' $_GET['cPath'] . '&pID=' $_GET['pID'] . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')));
                    break;

                case 
    'delete_product_confirm':
                    if (
    file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/delete_product_confirm.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/delete_product_confirm.php');
                     } else {
                        require(
    DIR_WS_MODULES 'delete_product_confirm.php');
                     }
                    break;
                case 
    'move_product_confirm':
                    if (
    file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/move_product_confirm.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/move_product_confirm.php');
                     } else {
                        require(
    DIR_WS_MODULES 'move_product_confirm.php');
                     }
                    break;
                case 
    'insert_product_meta_tags':
                case 
    'update_product_meta_tags':
                    if (
    file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/update_product_meta_tags.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/update_product_meta_tags.php');
                     } else {
                        require(
    DIR_WS_MODULES 'update_product_meta_tags.php');
                     }
                    break;
                case 
    'insert_product':
                case 
    'update_product':
                    if (
    file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/update_product.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/update_product.php');
                     } else {
                        require(
    DIR_WS_MODULES 'update_product.php');
                     }
                    break;
                case 
    'copy_to_confirm':
    //die(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/copy_to_confirm.php');
                    
    if (file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/copy_to_confirm.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/copy_to_confirm.php');
                     } else {
                        require(
    DIR_WS_MODULES 'copy_to_confirm.php');
                     }
                    break;
                case 
    'new_product_preview_meta_tags':
                    if (
    file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/new_product_preview_meta_tags.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/new_product_preview_meta_tags.php');
                     } else {
                        require(
    DIR_WS_MODULES 'new_product_preview_meta_tags.php');
                     }
                    break;
                case 
    'new_product_preview':
                    if (
    file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/new_product_preview.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/new_product_preview.php');
                     } else {
                        require(
    DIR_WS_MODULES 'new_product_preview.php');
                     }
                    break;

            }
        }

    // check if the catalog image directory exists
        
    if (is_dir(DIR_FS_CATALOG_IMAGES)) {
            if (!
    is_writeable(DIR_FS_CATALOG_IMAGES)) $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE'error');
        } else {
            
    $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST'error');
        }
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>">
    <title><?php echo TITLE?></title>
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
    <script language="javascript" src="includes/menu.js"></script>
    <script language="javascript" src="includes/general.js"></script>
    <script type="text/javascript">
        <!--
        function init()
        {
            cssjsmenu('navbar');
            if (document.getElementById)
            {
                var kill = document.getElementById('hoverJS');
                kill.disabled = true;
            }
    if (typeof _editor_url == "string") HTMLArea.replaceAll();
     }
     // -->
    </script>
    <?php //changed for v4 jph mod
    if ($action != 'new_product_meta_tags' && $editor_handler != '') include ($editor_handler); ?>

    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="init()">
    <div id="spiffycalendar" class="text"></div>
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES 'header.php'); ?>
    <!-- header_eof //-->

    <!-- body //-->
    <table border="0" width="100%" cellspacing="2" cellpadding="2">
        <tr>
    <!-- body_text //-->
            <td width="100%" valign="top">
    <?php
        
    if ($action == 'new_product' or $action == 'new_product_meta_tags') {

            if (
    $action == 'new_product_meta_tags') {
                require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/collect_info_metatags.php');
            } else {
                require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/collect_info.php');
            }

        } elseif (
    $action == 'new_product_preview' or $action == 'new_product_preview_meta_tags') {
            if (
    $action == 'new_product_preview_meta_tags') {
                require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/preview_info_meta_tags.php');
            } else {
                require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/preview_info.php');
            }

        } else {

        require(
    DIR_WS_MODULES 'category_product_listing.php');

            
    $heading = array();
            
    $contents = array();
            switch (
    $action) {
                case 
    'new_category':
                    
    $heading[] = array('text' => '<b>' TEXT_INFO_HEADING_NEW_CATEGORY '</b>');

                    
    $contents = array('form' => zen_draw_form('newcategory'FILENAME_CATEGORIES'action=insert_category&cPath=' $cPath'post''enctype="multipart/form-data"'));
                    
    $contents[] = array('text' => TEXT_NEW_CATEGORY_INTRO);

                    
    $category_inputs_string '';
                    
    $languages zen_get_languages();
                    for (
    $i 0$n sizeof($languages); $i $n$i++) {
                        
    $category_inputs_string .= '<br />' zen_image(DIR_WS_CATALOG_LANGUAGES $languages[$i]['directory'] . '/images/' $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' zen_draw_input_field('categories_name[' $languages[$i]['id'] . ']'''zen_set_field_length(TABLE_CATEGORIES_DESCRIPTION'categories_name'));
                    }

                    
    $contents[] = array('text' => '<br />' TEXT_CATEGORIES_NAME $category_inputs_string);
                    
    $contents[] = array('text' => '<br />' TEXT_CATEGORIES_IMAGE '<br />' zen_draw_file_field('categories_image'));

                    
    $dir = @dir(DIR_FS_CATALOG_IMAGES);
                    
    $dir_info[] = array('id' => '''text' => "Main Directory");
                    while (
    $file $dir->read()) {
                        if (
    is_dir(DIR_FS_CATALOG_IMAGES $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
                            
    $dir_info[] = array('id' => $file '/''text' => $file);
                        }
                    }

                    
    $default_directory substr$cInfo->categories_image0,strpos$cInfo->categories_image'/')+1);
                    
    $contents[] = array('text' => TEXT_CATEGORIES_IMAGE_DIR ' ' zen_draw_pull_down_menu('img_dir'$dir_info$default_directory));

                    
    $contents[] = array('text' => '<br />' TEXT_SORT_ORDER '<br />' zen_draw_input_field('sort_order''''size="4"'));
                    
    $contents[] = array('align' => 'center''text' => '<br />' zen_image_submit('button_save.gif'IMAGE_SAVE) . ' <a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath) . '">' zen_image_button('button_cancel.gif'IMAGE_CANCEL) . '</a>');
                    break;
                case 
    'edit_category':
                    
    $heading[] = array('text' => '<b>' TEXT_INFO_HEADING_EDIT_CATEGORY '</b>');

                    
    $contents = array('form' => zen_draw_form('categories'FILENAME_CATEGORIES'action=update_category&cPath=' $cPath'post''enctype="multipart/form-data"') . zen_draw_hidden_field('categories_id'$cInfo->categories_id));
                    
    $contents[] = array('text' => TEXT_EDIT_INTRO);

                    
    $category_inputs_string '';
                    
    $languages zen_get_languages();
                    for (
    $i 0$n sizeof($languages); $i $n$i++) {
                        
    $category_inputs_string .= '<br />' zen_image(DIR_WS_CATALOG_LANGUAGES $languages[$i]['directory'] . '/images/' $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' zen_draw_input_field('categories_name[' $languages[$i]['id'] . ']'zen_get_category_name($cInfo->categories_id$languages[$i]['id']), zen_set_field_length(TABLE_CATEGORIES_DESCRIPTION'categories_name'));
                    }
                    
    $contents[] = array('text' => '<br />' TEXT_EDIT_CATEGORIES_NAME $category_inputs_string);
                    
    $contents[] = array('text' => '<br />' TEXT_EDIT_CATEGORIES_IMAGE '<br />' zen_draw_file_field('categories_image'));

                    
    $dir = @dir(DIR_FS_CATALOG_IMAGES);
                    
    $dir_info[] = array('id' => '''text' => "Main Directory");
                    while (
    $file $dir->read()) {
                        if (
    is_dir(DIR_FS_CATALOG_IMAGES $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
                            
    $dir_info[] = array('id' => $file '/''text' => $file);
                        }
                    }

                    
    $default_directory substr$cInfo->categories_image0,strpos$cInfo->categories_image'/')+1);
                    
    $contents[] = array('text' => TEXT_CATEGORIES_IMAGE_DIR ' ' zen_draw_pull_down_menu('img_dir'$dir_info$default_directory));
                    
    $contents[] = array('text' => '<br>' zen_info_image($cInfo->categories_image$cInfo->categories_name));
                    
    $contents[] = array('text' => '<br>' $cInfo->categories_image);

                    
    $contents[] = array('text' => '<br />' TEXT_EDIT_SORT_ORDER '<br />' zen_draw_input_field('sort_order'$cInfo->sort_order'size="2"'));
                    
    $contents[] = array('align' => 'center''text' => '<br />' zen_image_submit('button_save.gif'IMAGE_SAVE) . ' <a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&cID=' $cInfo->categories_id) . '">' zen_image_button('button_cancel.gif'IMAGE_CANCEL) . '</a>');
                    break;
                case 
    'delete_product':
                    if (
    file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/sidebox_delete_product.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/sidebox_delete_product.php');
                     } else {
                        require(
    DIR_WS_MODULES 'sidebox_delete_product.php');
                     }
                    break;
                case 
    'move_product':
                    if (
    file_exists(DIR_WS_MODULES $zc_products->get_handler($product_type) . '/sidebox_move_product.php')) {
                        require(
    DIR_WS_MODULES $zc_products->get_handler($product_type) . '/sidebox_move_product.php');
                     } else {
                        require(
    DIR_WS_MODULES 'sidebox_move_product.php');
                     }
                    break;
                case 
    'copy_to':
                    
    $copy_attributes_delete_first '0';
                    
    $copy_attributes_duplicates_skipped '0';
                    
    $copy_attributes_duplicates_overwrite '0';
                    
    $copy_attributes_include_downloads '1';
                    
    $copy_attributes_include_filename '1';

                    
    $heading[] = array('text' => '<b>' TEXT_INFO_HEADING_COPY_TO '</b>');
    // WebMakers.com Added: Split Page
                    
    if (empty($pInfo->products_id)) {
                        
    $pInfo->products_id$pID;
                    }

                    
    $contents = array('form' => zen_draw_form('copy_to'$type_admin_handler'action=copy_to_confirm&product_type=' $product_type '&cPath=' $cPath . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . zen_draw_hidden_field('products_id'$pInfo->products_id));
                    
    $contents[] = array('text' => TEXT_INFO_COPY_TO_INTRO);
                    
    $contents[] = array('text' => '<br />' TEXT_INFO_CURRENT_PRODUCT '<br /><b>' $pInfo->products_name ' ID#' $pInfo->products_id '</b>');
                    
    $contents[] = array('text' => '<br />' TEXT_INFO_CURRENT_CATEGORIES '<br /><b>' zen_output_generated_category_path($pInfo->products_id'product') . '</b>');
                    
    $contents[] = array('text' => '<br />' TEXT_CATEGORIES '<br />' zen_draw_pull_down_menu('categories_id'zen_get_category_tree(), $current_category_id));
                    
    $contents[] = array('text' => '<br />' TEXT_HOW_TO_COPY '<br />' zen_draw_radio_field('copy_as''link'true) . ' ' TEXT_COPY_AS_LINK '<br />' zen_draw_radio_field('copy_as''duplicate') . ' ' TEXT_COPY_AS_DUPLICATE);
                    
    //$contents[] = array('text' => zen_draw_checkbox_field('copy_media',true, true) . TEXT_COPY_MEDIA_MANAGER);

                    // only ask about attributes if they exist
                    
    if (zen_has_product_attributes($pInfo->products_id'false')) {
                        
    $contents[] = array('text' => '<br />' zen_image(DIR_WS_IMAGES 'pixel_black.gif','','100%','3'));
                        
    $contents[] = array('text' => '<br />' TEXT_COPY_ATTRIBUTES_ONLY);
                        
    $contents[] = array('text' => '<br />' TEXT_COPY_ATTRIBUTES '<br />' zen_draw_radio_field('copy_attributes''copy_attributes_yes'true) . ' ' TEXT_COPY_ATTRIBUTES_YES '<br />' zen_draw_radio_field('copy_attributes''copy_attributes_no') . ' ' TEXT_COPY_ATTRIBUTES_NO);
    // future                    $contents[] = array('align' => 'center', 'text' => '<br />' . ATTRIBUTES_NAMES_HELPER . '<br />' . zen_draw_separator('pixel_trans.gif', '1', '10'));
                        
    $contents[] = array('text' => '<br />' zen_image(DIR_WS_IMAGES 'pixel_black.gif','','100%','3'));
                    }

                    
    $contents[] = array('align' => 'center''text' => '<br />' zen_image_submit('button_copy.gif'IMAGE_COPY) . ' <a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $pInfo->products_id . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image_button('button_cancel.gif'IMAGE_CANCEL) . '</a>');
                    
    $contents[] = array('text' => '</form>');
                    
                    
    $contents[] = array('text' => '<br />' zen_image(DIR_WS_IMAGES 'pixel_black.gif','','100%','3'));
                    
    $contents[] = array('text' => '<form action="' FILENAME_PRODUCTS_TO_CATEGORIES '.php' '?products_filter=' $pInfo->products_id '" method="post">');
                    
    $contents[] = array('align' => 'center''text' => '<input type="submit" value="' BUTTON_PRODUCTS_TO_CATEGORIES '"></form>');

                    break;
    // attribute features
            
    case 'attribute_features':
                    
    $copy_attributes_delete_first '0';
                    
    $copy_attributes_duplicates_skipped '0';
                    
    $copy_attributes_duplicates_overwrite '0';
                    
    $copy_attributes_include_downloads '1';
                    
    $copy_attributes_include_filename '1';
                    
    $heading[] = array('text' => '<b>' TEXT_INFO_HEADING_ATTRIBUTE_FEATURES $pInfo->products_id '</b>');

                    
    $contents[] = array('align' => 'center''text' => '<br />' '<strong>' TEXT_PRODUCTS_ATTRIBUTES_INFO '</strong>' '<br />');

                    
    $contents[] = array('align' => 'center''text' => '<br />' '<strong>' zen_get_products_name($pInfo->products_id$languages_id) . ' ID# ' $pInfo->products_id '</strong><br /><br />' .
                                                                                                                         
    '<a href="' zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER'&action=attributes_preview' '&products_filter=' $pInfo->products_id) . '">' zen_image_button('button_preview.gif'IMAGE_PREVIEW) . '</a>' .
                                                                                                                         
    '&nbsp;&nbsp;' '<a href="' zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER'products_filter=' $pInfo->products_id) . '">' zen_image_button('button_edit_attribs.gif'IMAGE_EDIT_ATTRIBUTES) . '</a>' .
                                                                                                                         
    '<br /><br />');
                    
    $contents[] = array('align' => 'left''text' => '<br />' '<strong>' TEXT_PRODUCT_ATTRIBUTES_DOWNLOADS '</strong>' zen_has_product_attributes_downloads($pInfo->products_id) . zen_has_product_attributes_downloads($pInfo->products_idtrue));
                    
    $contents[] = array('align' => 'left''text' => '<br />' TEXT_INFO_ATTRIBUTES_FEATURES_DELETE '<strong>' zen_get_products_name($pInfo->products_id) . ' ID# ' $pInfo->products_id '</strong><br /><a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $pInfo->products_id '&action=delete_attributes' . (isset($_GET['page']) ? '&page=' $_GET['page'] : '') . '&products_id=' $pInfo->products_id) . '">' zen_image_button('button_delete.gif'IMAGE_DELETE) . '</a>');
                    
    $contents[] = array('align' => 'left''text' => '<br />' TEXT_INFO_ATTRIBUTES_FEATURES_UPDATES '<strong>' zen_get_products_name($pInfo->products_id$languages_id) . ' ID# ' $pInfo->products_id '</strong><br /><a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $pInfo->products_id '&action=update_attributes_sort_order' . (isset($_GET['page']) ? '&page=' $_GET['page'] : '') . '&products_id=' $pInfo->products_id) . '">' zen_image_button('button_update.gif'IMAGE_UPDATE) . '</a>');
                    
    $contents[] = array('align' => 'left''text' => '<br />' TEXT_INFO_ATTRIBUTES_FEATURES_COPY_TO_PRODUCT '<strong>' zen_get_products_name($pInfo->products_id$languages_id) . ' ID# ' $pInfo->products_id '</strong><br /><a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $pInfo->products_id '&action=attribute_features_copy_to_product' . (isset($_GET['page']) ? '&page=' $_GET['page'] : '') . '&products_id=' $pInfo->products_id) . '">' zen_image_button('button_copy_to.gif'IMAGE_COPY_TO) . '</a>');
                    
    $contents[] = array('align' => 'left''text' => '<br />' TEXT_INFO_ATTRIBUTES_FEATURES_COPY_TO_CATEGORY '<strong>' zen_get_products_name($pInfo->products_id$languages_id) . ' ID# ' $pInfo->products_id '</strong><br /><a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $pInfo->products_id '&action=attribute_features_copy_to_category' . (isset($_GET['page']) ? '&page=' $_GET['page'] : '') . '&products_id=' $pInfo->products_id) . '">' zen_image_button('button_copy_to.gif'IMAGE_COPY_TO) . '</a>');

                    
    $contents[] = array('align' => 'center''text' => '<br /><a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $pInfo->products_id . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image_button('button_cancel.gif'IMAGE_CANCEL) . '</a>');
                    break;

    // attribute copier to product
            
    case 'attribute_features_copy_to_product':
                
    $_GET['products_update_id'] = '';
                
    // excluded current product from the pull down menu of products
                
    $products_exclude_array = array();
                
    $products_exclude_array[] = $pInfo->products_id;

                
    $heading[] = array('text' => '<b>' TEXT_INFO_HEADING_ATTRIBUTE_FEATURES $pInfo->products_id '</b>');
                
    $contents = array('form' => zen_draw_form('products'FILENAME_CATEGORIES'action=update_attributes_copy_to_product&cPath=' $cPath . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . zen_draw_hidden_field('products_id'$pInfo->products_id) . zen_draw_hidden_field('products_update_id'$_GET['products_update_id']) . zen_draw_hidden_field('copy_attributes'$_GET['copy_attributes']));
                
    $contents[] = array('text' => '<br />' TEXT_COPY_ATTRIBUTES_CONDITIONS '<br />' zen_draw_radio_field('copy_attributes''copy_attributes_delete'true) . ' ' TEXT_COPY_ATTRIBUTES_DELETE '<br />' zen_draw_radio_field('copy_attributes''copy_attributes_update') . ' ' TEXT_COPY_ATTRIBUTES_UPDATE '<br />' zen_draw_radio_field('copy_attributes''copy_attributes_ignore') . ' ' TEXT_COPY_ATTRIBUTES_IGNORE);
                
    $contents[] = array('align' => 'center''text' => '<br />' zen_draw_products_pull_down('products_update_id'''$products_exclude_arraytrue) . '<br /><br />' zen_image_submit('button_copy_to.gif'IMAGE_COPY_TO). '&nbsp;&nbsp;<a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $pInfo->products_id . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image_button('button_cancel.gif'IMAGE_CANCEL) . '</a>');
                break;

    // attribute copier to product
            
    case 'attribute_features_copy_to_category':
                
    $_GET['categories_update_id'] = '';

                
    $heading[] = array('text' => '<b>' TEXT_INFO_HEADING_ATTRIBUTE_FEATURES $pInfo->products_id '</b>');
                
    $contents = array('form' => zen_draw_form('products'FILENAME_CATEGORIES'action=update_attributes_copy_to_category&cPath=' $cPath . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . zen_draw_hidden_field('products_id'$pInfo->products_id) . zen_draw_hidden_field('categories_update_id'$_GET['categories_update_id']) . zen_draw_hidden_field('copy_attributes'$_GET['copy_attributes']));
                
    $contents[] = array('text' => '<br />' TEXT_COPY_ATTRIBUTES_CONDITIONS '<br />' zen_draw_radio_field('copy_attributes''copy_attributes_delete'true) . ' ' TEXT_COPY_ATTRIBUTES_DELETE '<br />' zen_draw_radio_field('copy_attributes''copy_attributes_update') . ' ' TEXT_COPY_ATTRIBUTES_UPDATE '<br />' zen_draw_radio_field('copy_attributes''copy_attributes_ignore') . ' ' TEXT_COPY_ATTRIBUTES_IGNORE);
                
    $contents[] = array('align' => 'center''text' => '<br />' zen_draw_products_pull_down_categories('categories_update_id'''''true) . '<br /><br />' zen_image_submit('button_copy_to.gif'IMAGE_COPY_TO) . '&nbsp;&nbsp;<a href="' zen_href_link(FILENAME_CATEGORIES'cPath=' $cPath '&pID=' $pInfo->products_id . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image_button('button_cancel.gif'IMAGE_CANCEL) . '</a>');
                break;

            } 
    // switch

            
    if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {
                echo 
    '                        <td width="25%" valign="top">' "\n";

                
    $box = new box;
                echo 
    $box->infoBox($heading$contents);

                echo 
    '                        </td>' "\n";
            }
    ?>

                        </tr>
                        <tr>
    <?php
    // Split Page
    if ($products_query_numrows 0) {
        if (empty(
    $pInfo->products_id)) {
            
    $pInfo->products_id$pID;
        }
    ?>
                            <td class="smallText" align="right"><?php echo $products_split->display_count($products_query_numrowsMAX_DISPLAY_RESULTS_CATEGORIES$_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS) . '<br>' $products_split->display_links($products_query_numrowsMAX_DISPLAY_RESULTS_CATEGORIESMAX_DISPLAY_PAGE_LINKS$_GET['page'], zen_get_all_get_params(array('page''info''x''y')) ); ?></td>

    <?php
    }
    // Split Page
    ?>
                        </tr>
                    </table></td>
                </tr>
            </table>
    <?php
        
    }
    ?>
            </td>
    <!-- body_text_eof //-->
        </tr>
    </table>
    <!-- body_eof //-->

    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES 'footer.php'); ?>
    <!-- footer_eof //-->
    <br />
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES 'application_bottom.php'); ?>

  3. #3
    Join Date
    Dec 2007
    Location
    Acton, California
    Posts
    753
    Plugin Contributions
    12

    Default Re: Error in Admin without Log

    Quote Originally Posted by sammirah View Post
    Last night I kept getting a *category is disabled anytime I tried to add a new item. So I replaced the admin-->[product.php and that fixed it for everything except for my Product Book (which is the old version by Moku), as far as I know it was still working up until a week ago when I removed a couple of plugins which were not working and added updated versions of those which were not working. My guess is I need to reinstall some files because the databases are still intact. When I attempt to add a new product book item, I get the following error in the admin:

    Error!

    Unable to determine the page link!

    Function used:

    zen_href_link('', 'cPath=&action=new_product_preview', 'NONSSL')

    When I go to look at the logs there are non given at the time of the current error. Only thing I could think is there is something missing in the file: admin-->product_book.php which I will upload next.

    This plugin is integral to my online bookstore so any helpful suggestions are greatly appreciated.
    In zc156 product admin pages have changed on how they function requiring any older code to be updated.. you should ask in the product type book thread if anyone has this mod updated. https://www.zen-cart.com/showthread.php?200560
    Dave
    Working on a new project... MySite..

  4. #4
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    560
    Plugin Contributions
    0

    Default Re: Error in Admin without Log

    Quote Originally Posted by davewest View Post
    In zc156 product admin pages have changed on how they function requiring any older code to be updated.. you should ask in the product type book thread if anyone has this mod updated. https://www.zen-cart.com/showthread.php?200560
    That thread is from another module based of this one "book" by moku. I think this "bookx" module was developed because "book" was no longer maintained.
    However the changes to be applied , I guess, are similar.
    I working on a update for bookX, but, to keep "book", you really must do some changes on the admin. Best to follow the changes on music product type, and I don't know what else, since I never used "book".
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

 

 

Similar Threads

  1. Replies: 6
    Last Post: 28 Dec 2012, 09:38 PM
  2. error when trying to log into admin after changing admin name
    By pcrcanada in forum General Questions
    Replies: 8
    Last Post: 29 Jun 2009, 08:51 PM
  3. Replies: 6
    Last Post: 7 Dec 2007, 03:42 AM
  4. Error admin activity log
    By cuda in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 31 Oct 2006, 06:24 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR