Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 24

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 15.02.2005, 01:01   #1 (permalink)
Baby Mamber
 
Join Date: Feb 2005
Location: Croatia, Osijek
Posts: 4
flacus is on a distinguished road
Angry Path & Upload problems?

I tried at forum.mamboserver.com and noone knows.....
These problems just came down on me.....suddenly..

Well, it started when I wanted to upload something in REMository and when I click on upload button, i click on browse and select that file and click UPLOAD. When it uploads my path becomes like this:

http://www.xxxxxxx.org/hr/downloads/C:\Documents and Settings\xxxx\Desktop\mambo\modules\ShoutIt_mod_13 2.zip

That's what says in REmository!! I don't get it...why does it collect path from my computer??

And other things I've noticed, I can't install any new modules or components...

Please help!

This what happens when I try to Install new component...

Upload component - Upload Failed
Unrecoverable error "PCLZIP_ERR_MISSING_FILE (-4)"
[ Continue ... ]
Upload component - Failed
Installation file not found:

[ Continue ... ]

maybe it has to do something with that new patch for mambo?
i copy pasted it in root od 1st includes....
www.smth.com/includes/mambo.php ... is that ok=?

I've deleted old Remository and I tried to install a new one manually but it doesn't work....it says this:

Warning: file_get_contents(/home/fhlinux198/e/xxxxxxx.org/user/htdocs/hr/components/com_remositoryremository_install.xml): failed to open stream: No such file or directory in /home/fhlinux198/e/xxxxxxx.org/user/htdocs/hr/includes/domit/xml_domit_lite_parser.php on line 1031
Upload new component - Error
Installation file not found:
/home/fhlinux198/e/xxxxxx.org/user/htdocs/hr/components/com_remository

if you can see, there's NO slash ( / ) after remository in first line

and yes, I have tried with CHMOD 777...it's still not working...

EDIT: I don't have any document or folder called UPLOADFILES

I've tried to upload an image and path isn't right....something with uploading isn't working

Warning: unlink(/home/fhlinux198/e/xxxxxx.org/user/htdocs/hr/images/stories/obavijesti/c:\\\\documents and settings\\\\xxxxx\\\\desktop\\\\burglary.jpg): No such file or directory

I don't understand why it is coping path from my computer....I'll loose my mind until I solve this....
flacus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 15.02.2005, 02:04   #2 (permalink)
Baby Mamber
 
duncan.forrester's Avatar
 
Join Date: Feb 2005
Location: Stoke St Michael, Somerset
Posts: 2
duncan.forrester is on a distinguished road
Default Re: Path & Upload problems?

I don't have a cure, but I do have more info about the error

"Upload component - Upload Failed
Unrecoverable error "PCLZIP_ERR_MISSING_FILE (-4)"
[ Continue ... ]
Upload component - Failed
Installation file not found:"

.... because I had the same problem and looking at your server path I presume you're also hosted by Fasthosts??
The upload component fails on all uploads, when until recently it was working fine.
This seems to be because Fasthosts have upgraded all their Linux boxes to PHP 4.3.11-dev.

The full text of their explanation is at the bottom of this message, but it looks like it will become an issue for Mambo in the near future. Here's hoping somebody takes this on and produces a patch - please!

I asked Fasthosts why they are running a "pre-release" and received the following...
"The 11-dev CVS snapshot we are using is a stable branch of the development tree that resolves a couple of critical bugs, particularly the serialisation issue in 4.3.10"

Their description earlier in the day was...
This is due to a change in PHP and the way it handles file uploads. If you are
using a product such as Mambo, I would recommend contacting the authors of Mambo and seeking an update to handle PHP-4.3.11 and the way it now processes file uploads.

If you are a PHP person and are aware of how to edit the php files then you may find the following helpful in fixing the problem;

<?php

if(!isset($_FILES['userfile']))
{
?>

<form enctype="multipart/form-data" action="" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>

<?
exit(0);
}

echo '<pre>';
$filename = $_FILES['userfile']['name'];
$newfilename = substr(strrchr($_FILES['userfile']['name'],"\\"),1);
echo "New PHP hands us $filename as the filename<BR>";
echo "We need to parse this down to $newfilename using strrchr()<BR>";
echo "E.G \$newfile =
substr(strrchr(\$_FILES['userfile']['name'],\"\\\"),1);<BR>";

?>

Hope this helps,

Duncan

Last edited by duncan.forrester; 15.02.2005 at 02:16. Reason: spelling
duncan.forrester is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15.02.2005, 12:00   #3 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 7
Fletch is on a distinguished road
Default Re: Path & Upload problems?

I have the same problem... and yes, I am hosted with Fasthosts. They gave me almost the same answer and the same fix, but I am not sure which files to change to get it to work. Have you resolved this upload problem yet and if so how did you do it?

Thanks
Fletch
Fletch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15.02.2005, 15:23   #4 (permalink)
Baby Mamber
 
Join Date: Feb 2005
Location: Croatia, Osijek
Posts: 4
flacus is on a distinguished road
Default Re: Path & Upload problems?

I'm not with FastHosts, I have an account at Streamlinenet.co.uk...and they gave me simmilar answer...here it goes...

" The upgrade was forced due to security issues with all prior versions of PHP. The issue at hand is relevant to file uploads and that fact the IE is now providing the full file path;

We are advising customers to use the following PHP code which both demonstrates the issue and gives a workaround;

<?php

if(!isset($_FILES['userfile']))
{
?>

<form enctype="multipart/form-data" action="" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> Send this file: <input name="userfile" type="file" /> <input type="submit" value="Send File" /> </form>

<?
exit(0);
}

echo '<pre>';
$filename = $_FILES['userfile']['name'];
$newfilename = substr(strrchr($_FILES['userfile']['name'],"\\"),1);
echo "New PHP hands us $filename as the filename<BR>";
echo "We need to parse this down to $newfilename using strrchr()<BR>"; echo "E.G \$newfile = substr(strrchr(\$_FILES['userfile']['name'],\"\\\"),1);<BR>";

?>

We tried a new snapshot this morning, however the issue is still apparant. The information on the PHP bugs website seems to indicate they are not treating this as a bug, and that the issue only lies with Internet Explorer and not other web browsers.

Unfortunately this is all the information we have on this at this time, however we are continuing to investigate. "
flacus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15.02.2005, 15:38   #5 (permalink)
Baby Mamber
 
Join Date: Feb 2005
Location: Croatia, Osijek
Posts: 4
flacus is on a distinguished road
Default Re: Path & Upload problems?

Problem is temporarily solved with using FireFix...IE seems to mess up path within upload.....

Use FIreFix and it will work !

moderators, please put this topic in sticky because more and more people will have this kind of problem...all hosts are updating their PHP and everyone with mambo will have those problems....

thank you!
flacus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15.02.2005, 18:49   #6 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 7
Fletch is on a distinguished road
Default Re: Path & Upload problems?

Yes... using Firefox does temporarily fix the problem. The only problem is that I have a customer using Mambo and to ask them to use another browser to upload their images is not something I want to do as I think it makes it sound as if the system I have provided them with is unstable... not the way to keep your customers.

I can't believe that with all the clever PHP people on this forum that nobody has any idea how we can fix this

Maybe a bit of creeping would help... you are very, very, very, nice people

Fletch

Last edited by Fletch; 16.02.2005 at 12:45.
Fletch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.02.2005, 19:00   #7 (permalink)
Baby Mamber
 
duncan.forrester's Avatar
 
Join Date: Feb 2005
Location: Stoke St Michael, Somerset
Posts: 2
duncan.forrester is on a distinguished road
Default Re: Path & Upload problems?

Quote:
Originally Posted by Fletch
...
I can't believe that with all the clever PHP people on this forum that nobody has any idea how we can fix this

Maybe a bit of creeping would help... you are very, very, very, nice people

Fletch
I submitted this as a bug on MamboForge. I got the following reply...
Quote:
"Date: 2005-02-16 07:57
Sender: Andrew Eddie

I'm afraid we can't make fixes for dev versions as the goal posts
might shift between now and the final version. Until betas or
RC's start rolling I can't see us really be able to apply any
fixes with any confidence.

However, thanks for the heads-up on this. We'll keep our eye
on it."
So there it is guys - we're stuffed until PHP 4.3.11 goes "official". Any idea how long that may take anyone? I can't find any reference to it on the PHP site.

Unless, of course, somebody can suggest some pointers as to what code to modify....
duncan.forrester is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.02.2005, 19:17   #8 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 7
Fletch is on a distinguished road
Default Re: Path & Upload problems?

Duncan,

Thanks for trying. I also have a number of posts on the Mambo forum about this problem. Who knows we may get lucky If I get anything back I will post it here.

Fletch
Fletch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.02.2005, 21:42   #9 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 7
Fletch is on a distinguished road
Default Re: Path & Upload problems?

These are some of the replies I got back from my postings on the mamboserver forum.

Quote:
tonyskyday - mamboserver Supreme Mamber
No, I can't. And even if I could, the fix may not work or may not be necessary for the next dev release or the stable release.
Quote:
kochp - Mambo Development Team
Funny enough they believe an untested, unstable developer version to be more secure than the stable release. They would better go selling bananas instead of providing hosting services with that expertise....
Quote:
mamboguy.com - mamboserver Super Moderator
...but there is a simple solution... leave your 'stupid host' and find one that does not run untested solutions. Why is this Mambo's problem? We can't solve a problem that your host caused...
Therefore, the only way round it at the moment is to use Firefox for administration of Mambo... but watch this space as I don't think we have heard the last of this.
Fletch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23.02.2005, 17:19   #10 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 7
Fletch is on a distinguished road
Default Re: Path & Upload problems?

My host (Fasthosts) has rolled back to 4.3.9... problem solved
Fletch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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
Pic upload path insert into MySQL? midlantica Mambo 4.5.1 General Talk 0 06.01.2005 06:08
Problem with component upload Riba Mambo 4.5 General Talk 1 16.10.2004 16:58
Problems with HTMLArea 3, background color and upload files dir. gregorib Mambo 4.5.1 General Talk 1 01.10.2004 04:47
Photo Gallery Upload Problems lostlizard Mambo 4.5 General Talk 3 08.08.2004 11:07
Remository Upload Problem ewschone Mambo 4.5 Installation and Upgrades 3 17.04.2004 20:40


All times are GMT +2. The time now is 14:08.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.