Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in includes\InputSerialItemsFile.php
03-20-2014, 12:11 AM
Post: #1
Error in includes\InputSerialItemsFile.php
Get the following error when trying to confirm a dispatch. System defaults to "File Upload" for controlled items. I get this error when landing on the page
( ! ) Warning: Illegal string offset 'Processed' in C:\wamp\www\weberp\includes\InputSerialItemsFile.php on line 120
Call Stack
# Time Memory Function Location
1 0.0007 273728 {main}( ) ..\ConfirmDispatchControlled_Invoice.php:0
2 0.0333 1447664 include( 'C:\wamp\www\weberp\includes\InputSerialItems.php' ) ..\ConfirmDispatchControlled_Invoice.php:78
3 0.0348 1507400 include( 'C:\wamp\www\weberp\includes\InputSerialItemsFile.php' ) ..\InputSerialItems.php:140

Changing to keyed entry works ok but error should be fixed.
Find all posts by this user
Quote this message in a reply
03-20-2014, 07:50 PM
Post: #2
RE: Error in includes\InputSerialItemsFile.php
(03-20-2014 12:11 AM)agaluski Wrote:  Get the following error when trying to confirm a dispatch. System defaults to "File Upload" for controlled items. I get this error when landing on the page
( ! ) Warning: Illegal string offset 'Processed' in C:\wamp\www\weberp\includes\InputSerialItemsFile.php on line 120
Call Stack
# Time Memory Function Location
1 0.0007 273728 {main}( ) ..\ConfirmDispatchControlled_Invoice.php:0
2 0.0333 1447664 include( 'C:\wamp\www\weberp\includes\InputSerialItems.php' ) ..\ConfirmDispatchControlled_Invoice.php:78
3 0.0348 1507400 include( 'C:\wamp\www\weberp\includes\InputSerialItemsFile.php' ) ..\InputSerialItems.php:140

Changing to keyed entry works ok but error should be fixed.

Seems like $_SESSION['CurImportFile']['Processed'] isn't getting initialised. I think this is the problem. Try setting it to true before line 90.

It's only a warning, so shouldn't affect whether or not it works. Warnings should be turned off in production environment anyway.

Let me know if the code actually fails and I will take a look at it

Tim
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)