Jump to content


Photo
- - - - -

Uninitialized string offset: 0


4 replies to this topic

#1 Ernst Jakob

Ernst Jakob

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • LocationSwitzerland

Posted 06 January 2016 - 04:11 AM

hi, all of a sudden, and on another ship, a while ago, when trying to troubeshoot in Tweaks,
I get this error message:

Uninitialized string offset: 0 in /home/jacobch/www/openshop_li/cart/admin/controller/tool/tweaks.php on line 177

foreach ($tfiles as &$tfile) {
  $tfile = str_replace('../','',$tfile);
  if ($tfile[0] == '/') $tfile = substr($tfile,1);
}

Possibly, you'll know, from what this could happen.
Ernie


  • 0

#2 MaxD

MaxD

    Administrator

  • Administrators
  • 715 posts

Posted 07 January 2016 - 01:18 PM

$tfile is empty. Change $tfile[0] to substr($tfile,0,1)


  • 0

#3 Ernst Jakob

Ernst Jakob

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • LocationSwitzerland

Posted 08 January 2016 - 12:55 AM

thanks a lot, I found a (non OS) VqMod beeing source of the problem, after it's removal, it worked. But I updated the File anyway, according to your instructions!

 

all the best for 2016 !
Ernie

 

PS. One question, did you ever implement the 'few' Fixes from the 'latest' v.1.5.6.5_rc Version into your latest OS ?

## v1.5.6.5 (Pending)
#### Bugs fixed
* Updated SQL in admin/model/sale/order.php to fix date_modified filter. Fixes #1371
* Change settitle to setTitle in error/not_found.php
* Fixed issue in Amazon Payments where tax lines where passed as products if cart had different tax rates.
* Fixed the implementation of captchas.
* Incorrect file type when uploading on Windows Machines REF: #1550
* Corrected 404 response headers REF: #1620
* Trigger JS change on page load to ensure that option choices are hidden/shown when editing an option.
* Fixed hyphen problem with PayPal Express checkout url
* Changed PayPal cardissue to issuenumber variabe for PayPal Pro
* Used correct admin setting to check if product count should be done on a category REF: #1828
* Changed response message to hide sensitive DB connection data on failure. REF: 3fff5226d9c48f8f4c948bc2c27a5c91f8dba1a2
* Fixed category count to be called only when count is turned on
* Added formatting to number format in pp express to ensure no comma is added for items over 1000 #2216

#### Changes
* Removed duplicate DELETE SQL query for product attributes REF: #1379
* Small coding standard improvement (spacing on if and else if statements) in Amazon Payments FE template
* Updated link to download location for Amazon Payments adjustment file as it was removed from the source.
* Added missing semi-colon to echo statements in Amazon Checkout REF: #1565
* Removed old subversion file read from admin/controller/footer - redundant code.
* Added speed improvement for the product count check in the category module if it is disabled. Part of the totals calculation were still being done.

#### Added
* Authorize.net solution ID to payment gateway 

  • 0

#4 MaxD

MaxD

    Administrator

  • Administrators
  • 715 posts

Posted 08 January 2016 - 02:07 PM

Nope, I havn't implemented any of this. You may add OpenShop_Extension.zip to v.1.5.6.5_rc shop.


  • 0

#5 Ernst Jakob

Ernst Jakob

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • LocationSwitzerland

Posted 08 January 2016 - 04:09 PM

thanks, I already added 1.5.6.5_rc, by use of the OpenShop Extension only. Just wanted to mention it :)

Ernie


  • 0



Reply to this topic



  



 

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Community Skin by Fredson Nunes Junior