Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Populate Merge Error in 2.2 Ms2


imac_jim

Recommended Posts

Hi Everyone. Does anyone know what this means? I can download only one of the EP files but with others I get this undefined function error.

 

Fatal error: Call to undefined function: tep_array_merge() in /home/mydomainaccount/public_html/myhosting/shop/catalog/admin/easypopulate.php on line 1047

Link to comment
Share on other sites

Hi, I have done a search and replace on the easypopulate.php to remove the tep_ and to end up with array_merge but I still get this message?

 

Fatal error: Call to undefined function: tep_array_merge() in /home/mywebdirectory/public_html/myaccount/myclient/catalog/admin/easypopulate.php on line 948

 

Are you running the latet milestone? I managed to get the script running fine with a snapshot of about a month ago and it worked fine without doing some of this but I cant work out what it was.

Link to comment
Share on other sites

Hi, I have done a search and replace on the easypopulate.php to remove the tep_ and to end up with array_merge but I still get this message?
I hate to say it, but you have at least one left. The only way to get that error is for a call to the function to still be there. Somehow, one didn't get changed.

 

Are there two easypopulate.php files? Perhaps you fixed one but not the other? Grasping at straws for an explanation here.

 

Good luck,

Matt

Link to comment
Share on other sites

Hi,

Thanks very much for your reply. I deleted them fro my directory. Extracted a new version from the downloaded EP zip file. I did a search and replace and found 7 tep_array_merge occurances to change to array_merge. I don't know how many I found last time.

 

The only other thing I did was to comment out the last function in the ep functions file and for some reason I had to change the link to my temp directory.

 

But now it all works fine again!

:D

Link to comment
Share on other sites

Hi!

 

I just installed OS Commerce 2.2 ms2 (new installation) and added Easy Populate. When I try to access the section I get the following error:

 

Fatal error: Cannot redeclare tep_get_tax_class_title() (previously declared in /usr/home/jcbenter/public_html/catalog/admin/includes/functions/general.php:1088) in /usr/home/jcbenter/public_html/catalog/admin/easypopulate_functions.php on line 34

 

Can anyone help me fix this?

 

TIA!

Heather

*~*~*~*~*~*

3JCB Enterprises

http://www.3jcbenterprises.com

Link to comment
Share on other sites

Hi,

 

In the easypopulate_functions.php comment out this tep_get_tax_class_title() funtion either by // before everything or /* Total function here commented out */

 

Don't ask me why. It is just what I found on here and it worked for me :) You might have to go back on some previous posts if you get some other errors.

Link to comment
Share on other sites

Thanks for the help.

 

That solved that problem, and then I ran into the problem that is listed above. Followed those directions and was up and running.

 

Now I am getting the following errors when trying to upload the file:

 

Warning: move_uploaded_file(/usr/home/jcbenter/public_html/catalog//catalog/temp/EP2003Jul17-2210.txt): failed to open stream: No such file or directory in /usr/home/jcbenter/public_html/catalog/admin/easypopulate_functions.php on line 32

 

Warning: move_uploaded_file(): Unable to move '/var/tmp/phpI1Los0' to '/usr/home/jcbenter/public_html/catalog//catalog/temp/EP2003Jul17-2210.txt' in /usr/home/jcbenter/public_html/catalog/admin/easypopulate_functions.php on line 32

 

 

File uploaded.  

Temporary filename: /var/tmp/phpI1Los0

User filename: EP2003Jul17-2210.txt

Size: 1018088

 

Warning: file(/usr/home/jcbenter/public_html/catalog//catalog/temp/EP2003Jul17-2210.txt): failed to open stream: No such file or directory in /usr/home/jcbenter/public_html/catalog/admin/easypopulate.php on line 710

 

Warning: Invalid argument supplied for foreach() in /usr/home/jcbenter/public_html/catalog/admin/easypopulate.php on line 728

 

Any ideas on how to fix this?

 

Thanks so much for all your help!

Heather

Link to comment
Share on other sites

Thanks for letting me know. I'm glad I'm not the only one.

 

I have that topic marked to watch also just in case an answer is posted there.

 

Good luck!

 

Please let me know if you find a soloution, and I'll do the same.

 

Have a great day!

Heather

Link to comment
Share on other sites

Well I am still a OS Commerce newbie myself but this one I fixed by changing the reference to the temp directory. I think this is in the easypopulate.php file in the config area. Settings near the top? There is a couple of references to the temp folder location. Change this reference so it finds the right directory. it might be set to something like catalog/temp/ just take the catalog off and maybe the end deliminator and see what happens? It fixed mine.

 

(/usr/home/jcbenter/public_html/catalog//catalog/temp/EP2003Jul17-2210.txt):

 

See how there is a error with the referencing with the double catalog references and the extra folder deliminator? I think that folder reference to the temp directory is the place to fix this.

 

Give that a try. :D

Link to comment
Share on other sites

It's quite obvious :

 

(/usr/home/jcbenter/public_html/catalog//catalog/temp/EP2003Jul17-2210.txt): failed to open stream: No such file or directory

 

I see catalog twice.

I believe that in configuration you have /catalog/temp/ as your temp directory it should be temp/

 

In easy_populate.php in Admin change the lines around 360 in :

 

$tempdir = "temp/";

 

$tempdir2 = "temp/";

 

Then it should work.

Link to comment
Share on other sites

Ok thanks it helped a bit but I still have problems.

Now it only uploads the file :S and doens't insert into the database

 

File uploaded. 

Temporary filename: /tmp/phpjpkwFP

User filename: EP2003Jul10-1402.txt

Size: 72985

 

Has this to do with to much products in the file? I got 280

Then I split the file in 200 and one is 80 (changed the $maxrecs to 200)

Then it just states

Filename: EP_Split1.txt

 

Also the problem with downloading is still present. When I want to download a Complete tab-delimited .txt file to edit the following message appears

Fatal error: Call to undefined function: tep_array_merge() in /home/httpd/vhosts/compusite.nl/httpdocs/catalog/admin/easypopulate.php on line 948

 

Is it just me or does easypopulate need some serieus upgrading for ms2

 

Thanks in advance for your help.

Link to comment
Share on other sites

I got it to work for me (for the most part.) Thank you so much for all the help!!!

 

For this problem:

 

Code:  

Fatal error: Call to undefined function: tep_array_merge() in /home/httpd/vhosts/compusite.nl/httpdocs/catalog/admin/easypopulate.php on line 948

 

It is addressed earlier on this forum. You need to do a search/replace of the tep_array_merge() and remove the tep_ portion and it works fine (at least on my end.)

 

Now, here is my new problem.....

 

I have almost 5000 items I am trying to upload.... (Yikes, I know!) I didn't get a time out error and it said the file uploaded okay, but only 15 items uploaded.

 

My other question is what is the "EOREOR" portion of the file? Should I be entering this for every item in my inventory?

 

Thanks again for all the help!

 

Have a GREAT day!

Heather

Link to comment
Share on other sites

I use EP with my 3400 items in 5 languages, even without splitting up the files.

Even in 2.2 MS2!

 

So no propblems with it.

 

The only thing is to have the temp directory pointed out right, and the removal of the tep_ in fornt of tep_array_merge.

Link to comment
Share on other sites

  • 7 months later...

HI all ,

 

not sure idf anyone can help me. I am having trouble downloading the complete tab text file. when i clidk either the complete or the temp directory options i get this error

 

error 500: Internal Server Error

 

 

The server encountered an unexpected condition which prevented it from fulfilling the request.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...