unknown PHP Upload error code unknown PHP Upload error code
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

unknown PHP Upload error code

Started by wildwalker, August 24, 2014, 09:03:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wildwalker

Hello All,

I was running my website on a Windows Server 2008 box using the default version of IIS and all was fine. I decided to move my site to a Windows Server 2012 R2 Standard machine, and at first everything looked okay, until I started to try to upload photos, then I get this 'Unknown PHP Upload error code'

To do the move, I first installed in the new server IIS role (inc CGI)
I took a dump of my database (mysqldump -u username -ppassword alan_gallery > dumpfilename.sql)

I then installed on the new server 2012 box:

php-5.3.9-Win32-VC9-x86
mysql-installer-community-5.6.20.0

I copied my Existing websites over (cpg 1.2.28)

restored my database

reconfigured IIS to see the site

Now I can not upload files, and I have some debug errors I have not seen before. I have a sneak feeling the SQL part might be issue, but I am unsure.

Any assistance greatly appreciated.

\include\logger.inc.php
Warning line 157: unlink(logs/database.log.php): Permission denied
Warning line 157: unlink(logs/global.log.php): Permission denied
Warning line 62: fopen(logs/global.log.php): failed to open stream: Permission denied
Warning line 63: fwrite() expects parameter 1 to be resource, boolean given
Warning line 64: fwrite() expects parameter 1 to be resource, boolean given
Warning line 65: fclose() expects parameter 1 to be resource, boolean given
Warning line 62: fopen(logs/global.log.php): failed to open stream: Permission denied
Warning line 63: fwrite() expects parameter 1 to be resource, boolean given
Warning line 64: fwrite() expects parameter 1 to be resource, boolean given
Warning line 65: fclose() expects parameter 1 to be resource, boolean given
\include\functions.inc.php
Warning line 466: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
Warning line 445: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
Warning line 446: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
Warning line 448: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
Warning line 466: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
Warning line 445: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
Warning line 446: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
Warning line 448: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
Warning line 4149: ksort() expects parameter 1 to be array, null given
Warning line 4159: Invalid argument supplied for foreach()
Warning line 4149: ksort() expects parameter 1 to be array, null given
Warning line 4180: Invalid argument supplied for foreach()
Notice line 4307: Undefined variable: result
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6341: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
Warning line 6290: mb_strlen(): Unknown encoding "language file"
\include\init.inc.php
Warning line 442: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead
\include\themes.inc.php
Warning line 2414: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead



wildwalker

Okay Sorry. Upload error and the errors I have in Coppermine are not related.

The upload error was permissions on the Windows\temp folder, really annoying as the IIS user was in there with 'special' permissions!

Anyway, I would still like to understand how to resolve the other errors.

wildwalker

Fixed the timezone settings, I had to add an entry to my php.ini

date.timezone = Europe/London

ΑndrĂ©

As the upload error seems to be solved, please mark this thread accordingly and start a new thread in the proper board if you've still issues that need to be solved.