osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

EasyPopulate - suddenly having upload problem - See Error

This is a discussion on EasyPopulate - suddenly having upload problem - See Error within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Friends, Here's the latest - I was uploading to my heart's content, until... I don't have A CLUE what happened.. ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-05-2004, 01:27 PM
New Member
 
Join Date: Jun 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
xpressed
Default EasyPopulate - suddenly having upload problem - See Error

Friends,

Here's the latest - I was uploading to my heart's content, until... I don't have A CLUE what happened.. I have tried reuploading the original files from a fresh osC MS2max install and it isn't fixing.. Any ideas? Is it possible that there error is due to the content in the txt file I am trying to upload? (I'm uploading a .txt file from local.)
__________________________________________________ _______
Easy Populate 2.61-MS2 - Default Language : English(1)

Warning: move_uploaded_file(/home/cafeprod/public_html//temp/Upload_withnoDecimals-Weight.txt): failed to open stream: Permission denied in /home/cafeprod/public_html/admin/easypopulate_functions.php on line 32

Warning: move_uploaded_file(): Unable to move '/var/tmp/phplUDUez' to '/home/cafeprod/public_html//temp/Upload_withnoDecimals-Weight.txt' in /home/cafeprod/public_html/admin/easypopulate_functions.php on line 32


File uploaded.
Temporary filename: /var/tmp/phplUDUez
User filename: Upload_withnoDecimals-Weight.txt
Size: 1360399

Warning: file(/home/cafeprod/public_html//temp/Upload_withnoDecimals-Weight.txt): failed to open stream: No such file or directory in /home/cafeprod/public_html/admin/easypopulate.php on line 720

Warning: Invalid argument supplied for foreach() in /home/cafeprod/public_html/admin/easypopulate.php on line 738



Upload EP File


Any ideas are most appreciated...

__________________________________________________
My easypopulate_functions.php file (at public_html/admin)

<?php
function tep_get_uploaded_file($filename) {
if (isset($_FILES[$filename])) {
$uploaded_file = array('name' => $_FILES[$filename]['name'],
'type' => $_FILES[$filename]['type'],
'size' => $_FILES[$filename]['size'],
'tmp_name' => $_FILES[$filename]['tmp_name']);
} elseif (isset($GLOBALS['HTTP_POST_FILES'][$filename])) {
global $HTTP_POST_FILES;

$uploaded_file = array('name' => $HTTP_POST_FILES[$filename]['name'],
'type' => $HTTP_POST_FILES[$filename]['type'],
'size' => $HTTP_POST_FILES[$filename]['size'],
'tmp_name' => $HTTP_POST_FILES[$filename]['tmp_name']);
} else {
$uploaded_file = array('name' => $GLOBALS[$filename . '_name'],
'type' => $GLOBALS[$filename . '_type'],
'size' => $GLOBALS[$filename . '_size'],
'tmp_name' => $GLOBALS[$filename]);
}

return $uploaded_file;
}

// the $filename parameter is an array with the following elements:
// name, type, size, tmp_name
function tep_copy_uploaded_file($filename, $target) {
if (substr($target, -1) != '/') $target .= '/';

$target .= $filename['name'];

move_uploaded_file($filename['tmp_name'], $target);
}


__________________________________________________ _________
Now.. line 738 from the easypopulate.php file at public_html/admin

// now we string the entire thing together in case there were carriage returns in the data
737~ $newreaded = "";
738~ foreach ($readed as $read){
739~ $newreaded .= $read;
}

// now newreaded has the entire file together without the carriage returns.
// if for some reason excel put qoutes around our EOREOR, remove them then split into rows
$newreaded = str_replace('"EOREOR"', 'EOREOR', $newreaded);
$readed = explode( $separator . 'EOREOR',$newreaded);



OH.. and also, I have set permissions on both of these files as well as the easypopulate.php found at root/easypopulate/EP_v2_74_MS2/catalog/admin/easypopulate.php to 777.

Thanks - will await your brilliance and continue to absorb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-06-2004, 05:36 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,684
Thanks: 2
Thanked 94 Times in 80 Posts
Rep Power: 12
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

Warning: move_uploaded_file(/home/cafeprod/public_html//temp/Upload_withnoDecimals-Weight.txt): failed to open stream: Permission denied

Said it all - MAKE sure the file and DIRECTORY has the correct permissions also!
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-08-2004, 05:55 PM
New Member
 
Join Date: Jun 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
xpressed
Default

Quote:
Originally Posted by jpf
Warning: move_uploaded_file(/home/cafeprod/public_html//temp/Upload_withnoDecimals-Weight.txt): failed to open stream: Permission denied

Said it all - MAKE sure the file and DIRECTORY has the correct permissions also!
Indeed, permissions were set to 755 for a single directory and it would seem that was one of the two issues..

What accompanied the fix was the following:

When we set up the osc directories, we chose not to use catalog/ anything.. WELL EasyPopulate doesn't like that and although I am sure you can modify the EP files to reflect whatever directory structure chosen, I haven't a clue where to make all these mods.. So, I gave in and created a "catalog" folder at public_html and put the "temp" folder EP used to use inside the catalog folder, thus making the path (public_html)/catalog/temp and what do you know, afterreuploading the stock ep~.php files, it works!!

Gosh - and all because I wanted to make the directory structure look the way I WANTED IT..


Anyway, so my latest issue is my model numbers are too long..

I have set the products_model field in my db to reflect a max length of 255 (and I've tried a random 40 too, just in case 255 was unrecognizable for some reason) and I am still getting an error when uploading through EP for any products with a model # greater than 15 characters (and 15 is the limit osC/admin/EP is reporting).. I am stumped, and ready to just modify all my product numbers.. Any ideas? What did I miss?

Thanks -

__________________________________
ERROR! - Too many characters in the model number.
12 is the maximum on a standard OSC install.
Your maximum product_model length is set to 15
You can either shorten your model numbers or increase the size of the field in the database.

and yet I've tried changing in php myadmin to:

products_model varchar(40) Yes NULL Change Drop Primary Index Unique Fulltext

products_model varchar(255) Yes NULL Change Drop Primary Index Unique Fulltext
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-08-2004, 06:51 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,484
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

You also have to set $modelsize to 255 in easypopulate.php
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-09-2004, 05:56 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,684
Thanks: 2
Thanked 94 Times in 80 Posts
Rep Power: 12
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

Also you have a double / in the file name... check paths....

Invaild: /home/cafeprod/public_html//temp/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
not so 'easy populate', upload error danhosts osCMax v2 Installation issues 5 09-29-2006 12:28 PM
easypopulate problem mcilpuf osCMax v2 Installation issues 0 09-23-2006 04:20 PM
Having to change image name to upload problem ozstar osCMax v2 Installation issues 1 02-26-2006 11:47 PM
Yep another person with an image upload problem Kragon8331 osCMax v1.7 Installation 3 12-14-2004 07:52 AM
Easy Populate v2.74 - Dwonload/Upload 1054 error deekins osCommerce 2.2 Modification Help 3 11-13-2004 03:37 PM


All times are GMT -8. The time now is 10:25 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax