Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    213
    Plugin Contributions
    1

    Idea or Suggestion PHP Warning: Illegal string offset 'id' in

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

    Kindly help me sort this out ,

    [09-Feb-2019 09:48:51 Asia/Kolkata] Request URI: /index.php?main_page=checkout_process, IP address: 1.136.104.64
    #1 shipping->__construct() called at [/includes/modules/checkout_process.php:105]
    #2 require(/includes/modules/checkout_process.php) called at [/includes/modules/pages/checkout_process/header_php.php:27]
    #3 require(/includes/modules/pages/checkout_process/header_php.php) called at [/index.php:36]

    [09-Feb-2019 09:48:51 Asia/Kolkata] PHP Warning: Illegal string offset 'id' in /includes/classes/shipping.php on line 32
    [09-Feb-2019 09:48:51 Asia/Kolkata] Request URI: /index.php?main_page=checkout_process, IP address: 1.136.104.64
    #1 shipping->__construct() called at [/includes/modules/checkout_process.php:105]
    #2 require(/includes/modules/checkout_process.php) called at [/includes/modules/pages/checkout_process/header_php.php:27]
    #3 require(/includes/modules/pages/checkout_process/header_php.php) called at [/index.php:36]

    [09-Feb-2019 09:48:51 Asia/Kolkata] PHP Warning: Illegal string offset 'id' in /includes/classes/shipping.php on line 32

    Code at line 32 of shipping.php
    [CODE ] if ( (zen_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), $this->modules)) ) {[/CODE]


    code at line 105 of
    [CODE ]
    $shipping_modules = new shipping($_SESSION['shipping']);[/CODE]

    PHP Version: 7.0.33 (Zend: 3.0.0)

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: PHP Warning: Illegal string offset 'id' in

    If you want to use PHP7, your best bet will be to update to Zen Cart 1.5.6a. Version 1.5.5 (which you are using) has a bunch of issues like the one you are reporting here.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v155 PHP Warning: Illegal string offset 'versionMajor'
    By gwynwyffar in forum General Questions
    Replies: 8
    Last Post: 10 May 2018, 06:09 PM
  2. v154 Official Sagepay Integration - PHP Warning: Illegal string offset 'id'
    By mikemc24 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 17 Aug 2017, 07:00 AM
  3. Replies: 9
    Last Post: 23 Mar 2015, 08:42 AM
  4. v151 PHP Warning: Illegal string offset 'id'
    By Nettric in forum Bug Reports
    Replies: 3
    Last Post: 30 May 2014, 06:53 AM
  5. Replies: 1
    Last Post: 30 Sep 2013, 07:39 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