On installed 7.2 Core
To update I followed steps in update.txt

Site is back up.
Now installing new module via url & file upload fails.
Via URL error :
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access temporary://gmap-7.x-1.x-dev.tar.gz in file_save_upload() (line 1541 of /var/www/vhosts/
Via File upload error :
Notice: Use of undefined constant WATCHDOG_ERR - assumed 'WATCHDOG_ERR' in file_unmanaged_copy() (line 909 of /var/www/vhosts/schoolenberg.info/httpdocs/includes/file.inc).

Please see screenshots for screenshots of error msg.
Excuse me if the module turns out not to be the file module but since I see "file.inc" there this seems the most logical.

Kind regards

Members fund testing for the Drupal project. Drupal Association Learn more


marco71’s picture

I should maybe have posted this under the 7.x.dev but I used the 6-30-2011 version.

NotNotCow’s picture


I had a similar problem, (and on a test site I've lost my Views edit function, although it works on the full site, but that's for another thread:)

Caveat: I am not a drupal expert by any means, so perhaps worth waiting for a more experienced member, or make sure you try this on a test site first. I'd also like to hear back from more experienced user as to my solution. This solution is based on upgrading a sub-domain.

Temporary files:

I could not upload/upgrade any modules, but found that if I went to: admin/configuration/media/file system

And then changed the temporary directory from /temp to temp the modules uploaded/updated.


I always find, that when updateing drupal through filezilla, a couple of files (normally includes/admin.inc and sometimes form.inc do not upload as they should. I normally make a note and then go in through C panel, delete the files and re-upload, directly from the drupal folder.

Anywho, hope this helps, and as I say, make sure you test this out on a test site, as my solution may cause problems I have not foreseen.



marco71’s picture

Hi NotNotCow,

Thanks I will try that. It sound like a possible solution.
Still I used WinSCP to upload. I think even in Bin mode.
If this is the solution I have to kick WinSCP as a tool.

marco71’s picture

Priority: Normal » Major
35.31 KB

I noticed now. This error also appears when I try to upload an image so must be some access I don't seem to have somewhere. However I have no Idea how to check if Drupal has rights to write to all needed destinations. Will look for ways to check in the forum. Sorry if this doesn't turn out to be a bug.

So I have been messing with this a bit more. And I guess I really need some help here.
This is a test site I play with so no problem on this machine but I need to do the security update on 3 other site.

My file upload paths look like this:
Public file system path : sites/default/files
Private file system path : temp
Temporary directory : sites/default/files/tmp

These folders also get used by the process since I see directories being created like
And files like

however it seems in the error msg there is mentioning of the destination for this tmp files to be written to.

So I see "fileH8fwB0" being written to "sites/default/files/tmp".
install-new-mods-error-5.png shows my "admin/config/media/file-system"

It's probably my fault but I don't get any further. :-(
-I rebuild permissions
-Messed around with the paths tried a new folder.

No luck yet

bfroehle’s picture

Component: file.module » update.module

This feature is actually part of the core provided 'update.module', so I'm re-categorizing the issue.

marco71’s picture

Thank you.

Do you have a solution or any clue where to start looking?

bfroehle’s picture

I created a separate ticket for the WATCHDOG_ERR notice in #1206916: Notice: Use of undefined constant WATCHDOG_ERR. I'm not sure where to start with the real issue here.

marco71’s picture

Ahhh I have chown and chmod the upload directories after the update. Even though I hate to ssh.... Gave all these, temp, tmp ,files 777 but still gives me the same msg s

I thought this might help but no... So this is a true issue?

marco71’s picture

20.48 KB

Also seem to have the same problem while simply uploading an image in an Article.

marco71’s picture

Warning: imagepng() [function.imagepng]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/schoolenberg.info/httpdocs/sites/default/files/color/garland-e672808f owned by uid 48 in _color_render_images() (line 558 of /var/www/vhosts/schoolenberg.info/httpdocs/modules/color/color.module).


marco71’s picture

Status: Active » Closed (works as designed)

Sorry to have bothered everyone.

Someone I susspect my hosting provider has turned the mode to Fast CGI with safe mode enabled.
Grrrrr I am sure I had it as Apache module and no safe mode.

So I turned off safe mode and here we go I am back on line.... H!@@# i this only cost me 2 days....lol.
I had some contact with them about php version being a bit old. So I guess during that process of updating things where messed up.

NotNotCow’s picture

Hey Marco71,

I'm glad you got there in the end! Your solution may also be why I can no longer view/edit my views after updating.

I'll post if this is this works:)



marco71’s picture

Happy to help. I hope it works for you. However I am not sure if I now have a security leak since I turned "safe mode" off.

Regards marco71

nardberjean’s picture

Version: 7.4 » 7.7
Status: Closed (works as designed) » Active

The same error message appear in some test sites, just after upgrading from 7.4 to 7.7, the message is persistent and the performance of the sites is affected. No idea from which component does it come from. No idea which complementary information could be useful. No idea if there is any relationship with the bug of this page.

catch’s picture

Status: Active » Postponed (maintainer needs more info)

Which error? Please post the exact error you're seeing to the issue.

nardberjean’s picture

Notice : Use of undefined constant WATCHDOG_ERR - assumed 'WATCHDOG_ERR' dans file_unmanaged_copy() (ligne 909 dans drupal-7.7/includes/file.inc).

If I translate in english:

Notice : Use of undefined constant WATCHDOG_ERR - assumed 'WATCHDOG_ERR' in file_unmanaged_copy() (line 909 in drupal-7.7/includes/file.inc).

I cannot make it appear in english. I am questionning me if the sites may have been damaged by the php 30 second limit during update (d7.4 -> d7.7)? (This may explain a lot of problems I experienced with drupal theses last 5 years ... an is an issue for the ability of drupal to run on cheap hosting).

lyricnz’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

#16: this is unrelated issue, bug in 7.7.
#1206916: Notice: Use of undefined constant WATCHDOG_ERR

Safe Mode is not supported. You need to disable it.

nardberjean’s picture

I cannot disable Safe Mode, I would need to change my hosting provider or change Drupal for another software. Is there any scope statement clarifying theses issues for drupal?

nardberjean’s picture