News:

Support the VirtueMart project and become a member

Main Menu

[OBSOLETE] 926: CSV Upload Fails under Joomla 1.5 (svn)

Started by Znuff, September 06, 2007, 20:13:19 PM

Previous topic - Next topic

Znuff

Like the title says, Uploading the products by CSV fails with the following error:

QuoteError: Failed to move the uploaded CSV file to . Please make this directory writable first!

above the error, I get a php error:

QuoteWarning: chmod() [function.chmod]: No such file or directory in /home/19106/domains/xxxx/html/administrator/components/com_virtuemart/classes/ps_csv.php on line 952

On line 952 of that there's:

Quoteif( !chmod( $mosConfig_cachepath, 0777 )) {

I'm guessing that variable is not defined anymore?

gregdev

This is a bug in Joomla! 1.5. I have posted the problem in the Joomla 1.5 Q&T forum. They incorrectly named the legacy variable (put in an extra underscore).

Greg

[tr][td]
[/td][td]
www.plainlycode.com[/td][/tr]
[/table]

Znuff

I also tried replacing the $mosConfig_cachepath with $tmp_path, but with no luck.

Also, I have some issues importing the CSV from the server.
After VirtueMart analyzes my CSV file, I don't have the form with the "Import Now" button. The form appears if I change between Simple and Extended mode, but it gives me an error because it removes the csv file after the simulation.


gregdev

Yes, they just corrected it. They are fast in responding! I also corrected our J! 1.5 compatibility file (rev. 928) to match their change.

Greg

[tr][td]
[/td][td]
www.plainlycode.com[/td][/tr]
[/table]