Jump to content

Christopher Short

Member
  • Posts

    432
  • Joined

  • Last visited

Posts posted by Christopher Short

  1. As its contents? Ok. (Not its filename, nor its CHMOD permissions, that is.)

     

    Here is what I have for line 185:

    $value = $rateReply->RatedShipmentDetails[0]->ShipmentRateDetail->TotalNetCharge->Amount;

    Technically, this should work. But perhaps there is a quirk in your specific version of PHP. If this is the case, then make that line look like these:

    $fedex_tmp1 = $rateReply->RatedShipmentDetails; // an array of objects
    $fedex_tmp2 = array_shift($fedex_tmp1); // get first element of array, the value of which is an object
    $value = $fedex_tmp2->ShipmentRateDetail->TotalNetCharge->Amount;

    It's weird that the error log contained 111, but it could be the logical equivalent of three true values. Anyway, it would probably be better if you now removed that error_log() statement.

     

    Hopefully, by breaking down the single statement, PHP won't have a problem with it anymore, or we can get a better idea what piece is still causing a problem.

     

    If line 185 in your file is NOT what I coded above, then let us know what line 185 actually is in your file.

    Line 185 was exact. I changed it and it still does the blank page.

  2.  

    For the briefest of time, make the following edit, enable the FedEx module, cause FedEx to output a blank screen, disable the module, and reply with the contents of the error file. It should be located in the main CubeCart folder.

     

    In the FedEx file shipping.class.php, near line 177:

    Find:
    $response = $this->_client->getRates($request);
     
    On a blank line just after that, add:
    error_log(print_r($response)."n", 3, CC_ROOT_DIR.CC_DS.'fedex_error.log');

    Did you find anything? I badly need to get the shipping back online.

  3. Please remind us of the exact version of CubeCart you are running. Your sig says 5.2.4.

     

    I've compared the module code between CC520 and CC5214. Apart from a few unrelated differences, the functions are the same.

     

    So, either FedEx has changed something, or something in the module's control panel is not set right.

    I have the most recent version

  4. The fedex module is crashing my website. When you activate it, the cart shows a blank page but when you disable it, the cart is there, Does anyone have any ideas as to the cause of this? It just started last week and has not occurred before then.

  5. Your functional details on how this enhancement would work is a bit lacking. So, anyone's solution may or may not actually work for you.

     

    Making some quick notes:

    1. Have a means to record which shipping module(s) apply to a product

    1a. Modules: List of eligible modules, and/or List of ineligible modules

    1b. Method of recording: Chuggy's Additional Product Fields, or a separate table, or add a column to CC_inventory

    2. Entering View Basket

    2a. Shipping modules enumerated: discard not commonly eligible, or discard all ineligible

    2b. Allow a split shipment

    2c. Calculate rates

    3. Enabling a new shipping module.

    3a. Assume the new module is ineligible, or eligible to all products

    3b. Update all product's records accordingly

    4. Disabling an existing shipping module, and update all product's records accordingly

    Cool. I don't know much about the back ground side of this. Anyone have any ideas?

  6. I am looking for a MOD to allow me to designate certain items to be shipped one way and other items to be shipped another way.

     

     

    EX

     

    Items:

    A

    B

    C

     

    Customer buys item A, it has to ship Fedex Ground, and cannot ship another way. Customer buys item B, it can ship USPS parcel post or Fedex ground. Customer buys item C, it can ship USPS priortity or first class( they choose).

     

    Item B and C can also ship with A's method, but A cannot ship any other method.

     

     

     

    Ideas? Needs to use fedex and usps only.

  7. I deleted the Log, refreshed the site, clicked basket and pulled this from the new log:

     

     

    [13-Nov-2014 21:47:47 America/New_York] PHP Fatal error:  Cannot use object of type stdClass as array in /home/clarkword/public_html/csrocketry.com/store/modules/shipping/FedEx/shipping.class.php on line 185
     

  8. [13-Nov-2014 21:01:17 America/New_York] PHP Notice:  Error: Hook 'Featured_Products/hooks/admin.navigation.php' was not found in /home/clarkword/public_html/csrocketry.com/store/classes/hookloader.class.php on line 163
    [13-Nov-2014 21:01:25 America/New_York] PHP Notice:  Error: Hook 'Featured_Products/hooks/admin.navigation.php' was not found in /home/clarkword/public_html/csrocketry.com/store/classes/hookloader.class.php on line 163
    [13-Nov-2014 21:04:53 America/New_York] PHP Notice:  Error: Hook 'Featured_Products/hooks/admin.navigation.php' was not found in /home/clarkword/public_html/csrocketry.com/store/classes/hookloader.class.php on line 163
    [13-Nov-2014 21:09:02 America/New_York] PHP Notice:  Error: Hook 'Featured_Products/hooks/admin.navigation.php' was not found in /home/clarkword/public_html/csrocketry.com/store/classes/hookloader.class.php on line 163
    [13-Nov-2014 21:09:10 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/clarkword/public_html/csrocketry.com/store/modules/plugins/GWorks_Featured_Item/hooks/class.gui.display_random_product.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 200
    [13-Nov-2014 21:09:10 America/New_York] PHP Warning:  implode() [<a href='http://docs.php.net/manual/en/function.implode.php'>function.implode.php</a>]: Invalid arguments passed in /home/clarkword/public_html/csrocketry.com/store/modules/plugins/GWorks_Featured_Item/hooks/class.gui.display_random_product.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 203
    [13-Nov-2014 21:09:10 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /home/clarkword/public_html/csrocketry.com/store/modules/plugins/GWorks_Featured_Item/hooks/class.gui.display_random_product.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 208
    [13-Nov-2014 21:09:10 America/New_York] PHP Warning:  implode() [<a href='http://docs.php.net/manual/en/function.implode.php'>function.implode.php</a>]: Invalid arguments passed in /home/clarkword/public_html/csrocketry.com/store/modules/plugins/GWorks_Featured_Item/hooks/class.gui.display_random_product.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 211
    [13-Nov-2014 21:09:10 America/New_York] PHP Warning:  array_rand() expects parameter 1 to be array, boolean given in /home/clarkword/public_html/csrocketry.com/store/modules/plugins/GWorks_Featured_Item/hooks/class.gui.display_random_product.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 230
    [13-Nov-2014 21:09:10 America/New_York] PHP Notice:  Error: Hook 'Featured_Products/hooks/class.gui.display.php' was not found in /home/clarkword/public_html/csrocketry.com/store/classes/hookloader.class.php on line 163
    [13-Nov-2014 21:09:14 America/New_York] PHP Notice:  Error: Hook 'Featured_Products/hooks/admin.navigation.php' was not found in /home/clarkword/public_html/csrocketry.com/store/classes/hookloader.class.php on line 163
    [13-Nov-2014 21:15:37 America/New_York] PHP Notice:  Error: Hook 'Featured_Products/hooks/admin.navigation.php' was not found in /home/clarkword/public_html/csrocketry.com/store/classes/hookloader.class.php on line 163
     

  9.  

    Plenty. It's very much like your car won't start in the morning.

     

    It is unfortunate you have to ask for your site's error logs.

     

    Maybe we can force the error logging to be saved at your site.

     

    Create a file named ini-custom.inc.php. It will be placed in CubeCart's main folder. It's contents are:

    <?php
    # Custom initialization commands
    # Filename: ini-custom.inc.php
    # File location: main CubeCart folder
    
    ini_set('memory_limit', '256M'); // Platypus Suhosin limit is 256M
    ini_set('max_execution_time', '60');
    ini_set('error_log', 'error_log');
    ini_set('log_errors', 'on');
    
    ?>

    Done. WHere might this show up?

  10. Something weird, for example, would be when PHP is running as a CGI/FastCGI service -- as opposed to an Apache mod_php module -- and you have added a statement in the .htaccess file that attempts to set a PHP configuration setting. In this scenario, the web server will throw an error because one cannot set PHP config values in the .htaccess file when PHP is not "under the direct control" of Apache.

     

    But, since this happens with only one (so far discovered) particular page request, the View Basket page, there may something else causing the web server to error.

    This is the one from the store:

     

    ## File Security

    <FilesMatch ".(htaccess)$">

     Order Allow,Deny

     Deny from all

    </FilesMatch>

    #### Apache directory listing rules ####

    DirectoryIndex index.php index.htm index.html

    IndexIgnore *

    #### Rewrite rules for SEO functionality ####

    <IfModule mod_rewrite.c>

      RewriteEngine On

      ######## START v4 SEO URL BACKWARD COMPATIBILITY ########

      RewriteCond %{QUERY_STRING} (.*)$

      RewriteCond %{REQUEST_FILENAME} !-f

      RewriteRule cat_([0-9]+)(.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$

      RewriteCond %{REQUEST_FILENAME} !-f

      RewriteRule prod_([0-9]+)(.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$

      RewriteCond %{REQUEST_FILENAME} !-f

      RewriteRule info_([0-9]+)(.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$

      RewriteCond %{REQUEST_FILENAME} !-f

      RewriteRule tell_([0-9]+)(.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC]

      RewriteCond %{QUERY_STRING} (.*)$

      RewriteCond %{REQUEST_FILENAME} !-f

      RewriteRule _saleItems(.[a-z]+)?(?.*)?$ index.php?_a=saleitems&%1 [NC,L]

      ######## END v4 SEO URL BACKWARD COMPATIBILITY ########

      RewriteCond %{REQUEST_FILENAME} !-f

      RewriteCond %{REQUEST_FILENAME} !-d

      RewriteCond %{REQUEST_URI} !=/favicon.ico

      RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA]

    </IfModule>

     

  11. These errors are certainly a problem, but I really doubt the this plugin's malformed SQL query would eventually lead to a 500ISE. I am looking for something that the web server (Apache?) does not like.

     

    And, what you found is CubeCart's catching and logging of malformed SQL errors. It is very rare for CubeCart to catch an error that causes PHP to crash (blank page), and certainly will not catch anything even before the web server starts PHP to run the CubeCart script.

     

    In your hosting control panel (cPanel?), you should be able to find PHP's error_log, as well as any other error log the web server may be using.

     

    And we still need to verify nothing weird is in the .htaccess file(s).

    What would weird look like? I'll request the php logs.

  12. Is there a way to have a reminder popup during checkout before shipping is confirmed? I sell hazmat and want to have a way to remind customers to select the proper shipping method during checkout.

  13.  

    What you are wanting is to suppress the category thumbnails if the category is not a top-level category (TLC). Am I right?

     

    Each sub-category block has both a thumbnail image and a text link. So, in your skin template content.category.php, find:

    {if isset($SUBCATS) && $SUBCATS}
    <div id="subcategories">
      {foreach from=$SUBCATS item=subcat}
      <div class="subcategory">
        <a href="{$subcat.url}" title="{$subcat.cat_name}">
          <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" />
        </a>
        <a href="{$subcat.url}" title="{$subcat.cat_name}">{$subcat.cat_name}</a>
      </div>
      {/foreach}
    </div>
    {/if}

    If you want to suppress the entire sub-category area, then do this:

    {if isset($SUBCATS) && $SUBCATS && $category.cat_parent_id == 0}

    TLCs have a cat_parent_id of 0, so only TLCs will show their sub-cats.

     

    If you want to suppress just the image, but keep the text link, then do this:

    {if $category.cat_parent_id == 0}<a href="{$subcat.url}" title="{$subcat.cat_name}">
      <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" />
    </a>{/if}

    I dont follow what to do. WHat i'm after is a way to keep the top category image as it will be the brands logo,but remove the image from sub categories. I want to only have the text link in there.

  14. At 303 MB, I think the above is actually happening.

     

    I will suggest that you use an external utility, such as phpMyAdmin, to make the backup. (Funny thing, though, is that phpMyAdmin is also a PHP application. So, how does it do this when CubeCart doesn't?)

    We tried that, it won't accept it.

  15. I'm thinking that the size of your database may be a problem. In admin, Maintenance, Database tab, what is the sum total of the four largest table sizes?

     

    I could be that PHP is running out of memory, or running out of time. If your installation of PHP is configured to not report errors, you won't know what's going on and all you will get is a blank screen.

     

    If PHP is configured to log errors (but not to display them), you should find the PHP error_log file and look at the last few entries. The error_log may be reachable by FTP, or may be available in your hosting control panel.

    303611+

×
×
  • Create New...