Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: upload with fopen disabled with cpg 1.4.9  (Read 3544 times)

0 Members and 1 Guest are viewing this topic.

mullet

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
upload with fopen disabled with cpg 1.4.9
« on: October 18, 2006, 10:15:02 pm »

Does anyone have an upload.php that works with fopen disabled?  Since it is not my server I cannot enable it.   I tried the version that wrapped curl for an earlier version of cpg but now with 1.4.9 I get:
Fatal error: Cannot redeclare spring_cleaning() (previously declared in upload.php:403) in include/logger.inc.php on line 104
« Last Edit: October 20, 2006, 05:23:49 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upload with fopen disabled with cpg 1.4.9
« Reply #1 on: October 19, 2006, 08:47:27 am »

Disable URL uploads and use regular http uploads.
Logged

mullet

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: upload with fopen disabled with cpg 1.4.9
« Reply #2 on: October 19, 2006, 07:00:16 pm »

Thanks...
Let me state my actual problem instead...  Uploading large files via normal http.  It seems anything larger then 5Megs (like a WMV) doesnt make it through http upload.  I have been getting around the problem by using FTP to transfer the large file and just referencing a local URI/URL.  My size restrictions are set to 50Megs so I dont think this is the problem. 

Is there anything I can do for that?  If not is there a way to wrap curl into the upload.php to get me around this problem?

much appreciate the feedback!
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: upload with fopen disabled with cpg 1.4.9
« Reply #3 on: October 19, 2006, 07:02:00 pm »

then try Batch Add instead
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upload with fopen disabled with cpg 1.4.9
« Reply #4 on: October 20, 2006, 09:22:26 am »

There's little point in FTP-uploading pics to your webspace and then using URI uploads (which has all drawbacks of http uploads like browser timeouts). URI uploads are meant to add pics that originally reside on remote webspace. It's not very surprising that you run into timeouts. Do as Sami suggested and use batch-add from now on.
What you did before was like buying a Porsche and then driving it in the swamp. Use your Posche to drive on roads and you'll see how fast your Porsche can go.
Logged

mullet

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: upload with fopen disabled with cpg 1.4.9
« Reply #5 on: October 20, 2006, 02:37:01 pm »

...Do as Sami suggested and use batch-add from now on.
What you did before was like buying a Porsche and then driving it in the swamp. Use your Posche to drive on roads and you'll see how fast your Porsche can go.
Interesting analogy... point taken. 
Thanks for the  tip on using the batch upload function... not sure why I didnt figure that out.  Now I just need to figure out why the wmv's aren't streaming... they used to before the upgrade to 1.4.9 so Im sure its some configuration thing.

The only debug notices I get are:
Notices
/include/themes.inc.php
Notice line 2196: Undefined index: uid
Notice line 2280: Undefined variable: report_tgt
Notice line 1899: Undefined index: uid
/displayimage.php
Notice line 319: Undefined variable: meta_keywords


Again.. thanks for the help!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upload with fopen disabled with cpg 1.4.9
« Reply #6 on: October 20, 2006, 05:23:38 pm »

Now I just need to figure out why the wmv's aren't streaming...
Different issue - in the future, please respect the "one question per thread" policy. Resolution: Video Files not showing / playing

The only debug notices I get are:
Notices
/include/themes.inc.php
Notice line 2196: Undefined index: uid
Notice line 2280: Undefined variable: report_tgt
Notice line 1899: Undefined index: uid
/displayimage.php
Notice line 319: Undefined variable: meta_keywords
Turn notices_display off if they don't mean anything to you - they are a feature meant for devs only who understand the code behind coppermine - they won't help you troubleshoot anything unless you're a skilled coder. Again: not related.

Since your original question was resolved, I'm marking this thread accordingly. If your other issue persists after having read the thread I refered to, start an independent thread.
Logged

mullet

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: upload with fopen disabled with cpg 1.4.9
« Reply #7 on: October 20, 2006, 05:31:26 pm »

Checking referring thread... appologies for multiple questions on this one and will not happen again :)
Thanks again!
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.