Jump to content
Sign in to follow this  
DavidRad

Empty Delimiter Error?

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!

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×