Jump to content

Smoky Barnable

♥Ambassador
  • Content count

    145
  • Joined

  • Last visited

  • Days Won

    7

Smoky Barnable last won the day on October 9

Smoky Barnable had the most liked content!

Profile Information

  • Real Name
    Eric

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Smoky Barnable

    KissIT Image Thumbnailer Support

    For those of you who would like to use this addon with PHP 8 the following change cleared this fatal error. In the image.php file, change: $trnprt_color = @imagecolorsforindex ( $this->_image, $trnprt_indx ); to: if ($trnprt_indx < imagecolorstotal($this->_image)){ $trnprt_color = imagecolorsforindex ( $this->_image, $trnprt_indx ); }
  2. Smoky Barnable

    KissIT Image Thumbnailer Support

    What's the best way to deal with this error? Fatal error: Uncaught ValueError: imagecolorsforindex(): Argument #2 ($color) is out of range PHP 8 has changed the behavior of the shutup operator - it no longer silences fatal errors.
  3. Time to cut the apron strings. If you can't code, move on.
  4. Smoky Barnable

    KissIT Image Thumbnailer Support

    protected function _output( $save_in = '', $quality = '', $filters = null ) { This seems to clear the warning.
  5. Smoky Barnable

    KissIT Image Thumbnailer Support

    I have this mostly working with PHP8 except for this warning: Deprecated: Required parameter $quality follows optional parameter $save_in in /home/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 137 protected function _output( $save_in = null, $quality, $filters = null ) { switch ($this->_mime_type) { case self::IMAGETYPE_GIF : return imagegif ( $this->_image, $save_in ); break; case self::IMAGETYPE_JPEG : case self::IMAGETYPE_JPG : $quality = is_null ( $quality ) ? 75 : $quality; return imagejpeg ( $this->_image, $save_in, $quality ); break; case self::IMAGETYPE_PNG : $quality = 9; $filters = is_null ( $filters ) ? null : $filters; return imagepng ( $this->_image, $save_in, $quality, $filters ); break; default : trigger_error ( 'Image cannot be created.', E_USER_NOTICE ); break; } // end switch } // end method I see this warning in the "what's new?" box.
  6. Smoky Barnable

    Updating to PHP8

    $categories_array[$index][] = array('id' => $categories['categories_id'], 'text' => $category['categories_name']); if ((!empty($category['parent_id'])) && ($category['parent_id'] != '0')) $categories_array = tep_generate_category_path($category['parent_id'], 'category', $categories_array, $index);
  7. Smoky Barnable

    Add all products to cart

    I have one shop that only has 100 products and occasionally I will get a customer who wants "one of each" but doesn't want to take the time to add them to their cart. Anyone know of an add-on that would add one each of all products with a single click?
  8. Smoky Barnable

    New management and osCommerce v4

    Good point. No reason to follow.
  9. Smoky Barnable

    Updating to PHP8

    This is what I have and it seems to work. $this->info = array('order_status' => DEFAULT_ORDERS_STATUS_ID, 'currency' => $currency, 'currency_value' => $currencies->currencies[$currency]['value'], 'payment_method' => $payment, 'cc_type' => '', 'cc_owner' => '', 'cc_number' => '', 'cc_expires' => '', 'shipping_method' => (isset($shipping['title']) ? $shipping['title'] : ''), 'shipping_cost' => (isset($shipping['cost']) ? $shipping['cost'] : 0), 'subtotal' => 0, 'tax' => 0, 'tax_groups' => array(), 'comments' => (isset($_SESSION['comments']) && !empty($comments) ? $comments : ''));
  10. Smoky Barnable

    Updating to PHP8

    Change: if ($this->contents[$key]['qty'] < 1) { to: if (isset($this->contents[$key]['qty']) < 1) {
  11. Smoky Barnable

    Updating to PHP8

    https://github.com/ruden/vanilla-oscommerce/blob/dev/catalog/admin/includes/classes/shopping_cart.php
  12. Smoky Barnable

    New management and osCommerce v4

    It would be really nice if someone took over oscommerce that actually had some serious leadership and communication skills. Someone who actually cared about the project. It is still a very unique and powerful software supported by the community for many years. Getting it updated to PHP 8 and made responsive is not a huge task.
  13. Smoky Barnable

    New management and osCommerce v4

    Switch hosts. There are plenty of hosts that allow you choose whatever PHP version you want. Stop waiting for v4. The developer is clearly not adhering to any kind of time schedule and I very much doubt any open source code will ever be released.
  14. Smoky Barnable

    New management and osCommerce v4

    Define shortly.
  15. Smoky Barnable

    OSCommerce setup problem

    You are probably using a version of XAMPP that has a higher version of PHP than your version of OsCommerce can handle. You can turn off error reporting or update all the code. https://stackoverflow.com/questions/16675753/php-fastest-way-to-handle-undefined-array-key
×