Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Populate upload problem


ihmt

Recommended Posts

I'm sure the problem I'm having is already solved, but I honestly can't find the solution in "Contribution Support". Might I humbly suggest (to whoever is responsable for the osCommerce forums) the creation of dedicated forums for specific contributions i.e. "Easy Populate support forum" ? I've read in a couple of places that there is a specific thread for Easy Populate support, but I can't find it. On the other hand I've found loads of threads dealing with this subject. I've spent hours searching and sifting forum threads - but no luck.

---------------------------------------------------------------------------------------------

Now for my problem!

A couple of days ago, I installed osCommerce and Easy Populate 2.76 (both freshly downloaded). They both installed smoothly first time round.

I tried downloading with EP and it went fine, creating the default TAB-separated file, which I accessed with Excel, without modifying anything at all. Then I tried to upload the file again, and I got the following error:

 

Warning: move_uploaded_file(/var/www/html/tienda/catalog//tienda/catalog/temp/EP2005jun04-0909.txt): failed to open stream: No such file or directory in /var/www/html/tienda/catalog/admin/easypopulate_functions.php on line 32

 

Warning: move_uploaded_file(): Unable to move '/tmp/phpzTPInm' to '/var/www/html/tienda/catalog//tienda/catalog/temp/EP2005jun04-0909.txt' in /var/www/html/tienda/catalog/admin/easypopulate_functions.php on line 32

 

 

File uploaded.

Temporary filename: /tmp/phpzTPInm

User filename: EP2005jun04-0909.txt

Size: 47404

 

Warning: file(/var/www/html/tienda/catalog//tienda/catalog/tempEP2005jun04-0909.txt): failed to open stream: No such file or directory in /var/www/html/tienda/catalog/admin/easypopulate.php on line 666

 

Warning: Invalid argument supplied for foreach() in /var/www/html/tienda/catalog/admin/easypopulate.php on line 689

 

I've repeated the process several times, but the result is always the same.

 

I've revised the configuration in easypopulate.php to see if there were any tipos or missed out items, but everything seems to be OK. The "temp" folder also has the rwx attributes assigned and I can't see anything else amiss.

 

As osCommerce was installed to .../html/tienda, this was also taken into consideration when configuring easypopulate.php, e.g. "$tempdir" is set to tienda/catalog/temp/

 

One thing I've noticed is that 2 of the error lines include "...catalog//tienda..." (notice the double slash). I even tried eliminating the ending slash on the "$tempdir" setting, but no difference.

 

I've even read the full installation manual - twice!!!

 

Any clues anyone?

I thought you were going to do it. You thought I was going to do it. We all thought somebody else was going to do it. At the end of the day, nobody did it.

That's teamwork.

Link to comment
Share on other sites

Have you set your $DOCUMENT_ROOT?

I have got it working correctly now. I changed the $tempdir from tienda/catalog/temp/ to /temp/

 

When you mentioned $DOCUMENT_ROOT, were you referring to $tempdir or something else? I want to make sure my configuration does not give me any further problems.

I thought you were going to do it. You thought I was going to do it. We all thought somebody else was going to do it. At the end of the day, nobody did it.

That's teamwork.

Link to comment
Share on other sites

means your document root setting is wrong, set it in your admin/includes/configure.php file

 

I've just checked the configure.php file. The document root is set at /var/www/html/tienda/catalog/ which is correct. Now I understand why my uploads were not working: I had set $tempdir to /tienda/catalog/temp, so there was a duplication of folders when $tempdir was appended to the document root.

 

I shall bear in mind the configure.php file for future reference/problems.

 

Thanks a lot for your help.

I thought you were going to do it. You thought I was going to do it. We all thought somebody else was going to do it. At the end of the day, nobody did it.

That's teamwork.

Link to comment
Share on other sites

  • 2 weeks later...

I applied the corrections you mentioned and now everything seems to be in place. Thanks a lot.

I thought you were going to do it. You thought I was going to do it. We all thought somebody else was going to do it. At the end of the day, nobody did it.

That's teamwork.

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...