forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: bizlur on May 15, 2013, 12:40:16 am

Title: Weird stuff happening all of a sudden...
Post by: bizlur on May 15, 2013, 12:40:16 am
On the main page I get this: 

/include/functions.inc.php

    Notice line 134: Undefined index: lang

/index.php

    Notice line 711: Undefined variable: file

When I upload an image I get this:

/include/functions.inc.php

    Notice line 134: Undefined index: lang
    Warning line 2950: cannot yet handle MBCS in html_entity_decode()!  (THIS LINE IS REPEATED MANY TIMES, AT LEAST 100 I'D SAY)

/upload.php

    Notice line 1979: Undefined variable: file_failure_array
    Notice line 1980: Undefined variable: URI_failure_array
    Notice line 1981: Undefined variable: zip_failure_array

The site's main user wasn't able to upload images, he said it was telling him that the file format was not recognized (jpg), even when he tried multiple images.

I upgraded to the newest version and I am able to upload images and everything works, except for all these warning/notice messages.

-------------------------------------------

USER:
------------------
Array
(
    [ID] => a4a0c58ad6e72dbbd26e95cf4fe26637
    [am] => 1
    [liv] => Array
        (
           
        )

    [lap] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => *******
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [URI_array] => Array
        (
            [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.9 - OK
------------------
mySQL version: 5.0.91-log
------------------
Coppermine version: 1.4.27(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.51a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/lib/php-4.4.9/lib/php | .:/usr/local/lib/php-4.4.9/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | wwwuser@cgi.yourhostingaccount.com | wwwuser@cgi.yourhostingaccount.com
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | mail.yourhostingaccount.com | mail.yourhostingaccount.com
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 10M | 10M
post_max_size | 11M | 11M
==========================
Page generated in 0.189 seconds - 19 queries in 0.039 seconds - Album set : ; Meta set: ;
Title: Re: Weird stuff happening all of a sudden...
Post by: phill104 on May 15, 2013, 12:15:44 pm
Can we have a link to your site please?
Title: Re: Weird stuff happening all of a sudden...
Post by: bizlur on May 15, 2013, 03:27:24 pm
http://foreignaffairs.us/gallery/

Title: Re: Weird stuff happening all of a sudden...
Post by: phill104 on May 15, 2013, 04:02:40 pm
You are still using the CPG1.4.x build which has been out of support for 2 years now. Please upgrade to CPG1.5.x. In all likelihood this will also fix your problems.
Title: Re: Weird stuff happening all of a sudden...
Post by: bizlur on May 15, 2013, 04:37:07 pm
I upgraded to the latest stable version.  I just upgrade to the latest and it just killed everything even when I try to revert to the old version.  Lovely.
Title: Re: Weird stuff happening all of a sudden...
Post by: bizlur on May 15, 2013, 05:08:07 pm
I just reverted to our old version, which I believe is 1.3.

Title: Re: Weird stuff happening all of a sudden...
Post by: bizlur on May 15, 2013, 05:33:00 pm
upgraded from 1.3 -> 1.5 instead of 1.3 -> 1.4 -> 1.5.

Does the same thing after upgrade.  "There was an error while processing a database query"

Reverting to 1.3 again.
Title: Re: Weird stuff happening all of a sudden...
Post by: phill104 on May 15, 2013, 07:33:30 pm
Please read the upgrade instructions carefully. Please note that upgrading from 1.3 to 1.5 is not supported. Bed go to 1.4 first then from there to 1.5. Remember to run update.php at each stage.