Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Empty Delimiter Error?


DavidRad

Recommended Posts

After searching forums all I found were not related to my problem:

 

Why, if easypopulate.php is entact would I start recieving the errors below when trying to import a tab delimited file? Notes: SWhen I try to export the tab dilimted file, there are NO tab spaces between fields. Also, if I configure easy populate to use ";" OR "," as a delimter it seems to work OK. This was working fine before. I ried to retrace anything that I might have done to muck this up though to no avail.

 

PHP Warning: explode() [<a href='function.explode'>function.explode</a>]: Empty delimiter. in /usr/home/mysite/admin/easypopulate.php on line 1293

PHP Warning: array_walk() [<a href='function.array-walk'>function.array-walk</a>]: The argument should be an array in /usr/home/mysite/admin/easypopulate.php on lie 2265

 

 

Here's the code:

 

     #########  on line 1293:  ###########

// blow it into an array, splitting on the tabs
       $items = explode($separator, $item1);

######## on line 2265: ##########

      } else {
               // this record was missing the product_model
               array_walk($items, 'print_el');
               echo "<p class=smallText>" . NO_NEW_PRODUCT_EP . "<br />";
               echo "<br />";

 

Thanks for your help!

Link to comment
Share on other sites

BTW, there is aslo another error that gets printed to the page when importing:

 

"No products_model field in record. This line was not imported."

 

Although there is a products_model field.

 

Thanks again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...