1
skippern
What is wrong?
  • 2005/12/7 10:16

  • skippern

  • Just popping in

  • Posts: 27

  • Since: 2005/12/5


Hi again

I have a problem with the Uploader module. Have tried to contact the person behind this module without any luck. Hope someone can help me instead.

When I go to the module, click on the link, this text apears in top of the page.

Warning: fopen(/home/mmpronu/public_html/pbk/modules/uploader/filer/$$$.dlcnt): failed to open stream: Permission denied in /home/mmpronu/public_html/pbk/modules/uploader/index.php on line 221

Warning: fwrite(): supplied argument is not a valid stream resource in /home/mmpronu/public_html/pbk/modules/uploader/index.php on line 222

Warning: fclose(): supplied argument is not a valid stream resource in /home/mmpronu/public_html/pbk/modules/uploader/index.php on line 223

What is wrong? Do you need more info to help me?

2
JMorris
Re: What is wrong?
  • 2005/12/7 11:40

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Quote:
Do you need more info to help me?


Yes, that would be helpful. lease provide as much of the following information as possible...

XOOPS Version:
Module Version:
Web Server Software (Apache/IIS/Other):

Also, it may just be a permissions issue...

Quote:
Permission denied in /home/mmpronu/public_html/pbk/modules/uploader/index.php on line 221


Check the corresponding line in that file and see what it references. If you're not able to to get it to work, please post the code from that line as well.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
skippern
Re: What is wrong?
  • 2005/12/7 12:34

  • skippern

  • Just popping in

  • Posts: 27

  • Since: 2005/12/5


Impressing support!

Okej, here comes some more...
Apache 1.3.33
PHP 4.3.11
MySql 4.0.25
Xoops 2.0.13.2
Module (Uploader) 1.1

From line 221 index.php


$fp = fopen("$uploads_path/$$$.dlcnt","w+"); // write counter file
fwrite($fp, $time, 100); // write back
fclose($fp);
}
}

function DeleteFilesByList($list)
{
global $uploads_path;
$list=str_replace("\x0D","",$list);
$list=str_replace("\x0A",";",$list);
$filenames=explode(";",$list);
$i = 0;
while ($i < count($filenames))
{
if ($filenames[$i] != "")
{
DeleteFile("$uploads_path/" . $filenames[$i]);
}
$i++;

Need more???? THANKS AGAIN!!!

4
JMorris
Re: What is wrong?
  • 2005/12/7 20:06

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Quote:

skippern wrote:
Impressing support!

Okej, here comes some more...
Apache 1.3.33
PHP 4.3.11
MySql 4.0.25
Xoops 2.0.13.2
Module (Uploader) 1.1

From line 221 index.php


$fp = fopen("$uploads_path/$$$.dlcnt","w+"); // write counter file
fwrite($fp, $time, 100); // write back
fclose($fp);
}
}

function DeleteFilesByList($list)
{
global $uploads_path;
$list=str_replace("\x0D","",$list);
$list=str_replace("\x0A",";",$list);
$filenames=explode(";",$list);
$i = 0;
while ($i < count($filenames))
{
if ($filenames[$i] != "")
{
DeleteFile("$uploads_path/" . $filenames[$i]);
}
$i++;

Need more???? THANKS AGAIN!!!



Looks like a permission problem on the uploads/ directory as the script is calling the global variable $uploads_path/. Try setting the chmod setting to 755, then, if that doesn't work, try 777. NOTE: The three directories that need to be chmod 755 (or 777) are cache/ templates_c/ and uploads/.

If that doesn't work, it may be a php configuration issue. If it doesn't work, create an emty file named phpinfo.php, insert the following code in it...

phpinfo();
?>


...upload it to your server and open it in your browser [i.e.: http://yourdomain/phpinfo.php]. Then do a search on the page for allow_urlfopen. I believe this will need to be on for the uploads module to work as it's using fopen. I'm not a php programmer, so I could very easily be wrong on the fopen part.

Reference: http://us2.php.net/function.fopen

Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

Login

Who's Online

466 user(s) are online (69 user(s) are browsing Support Forums)


Members: 0


Guests: 466


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits