Advanced search  

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

Pages: [1]   Go Down

Author Topic: Weird stuff happening all of a sudden...  (Read 4147 times)

0 Members and 1 Guest are viewing this topic.

bizlur

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Weird stuff happening all of a sudden...
« 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
        (
           
  • => 175

        )

    [lap] => 1
)

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

        )

    [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
(
   
  • => SELECT extension, mime, content, player FROM cpg130_filetypes; (0s)
  • [1] => select * from cpg130_plugins order by priority asc; (0.015s)
        [2] => delete from `foreigna_admin`.cpg130_sessions where time<1368567087 and remember=0; (0.003s)
        [3] => delete from `foreigna_admin`.cpg130_sessions where time<1367361087; (0.001s)
        [4] => select user_id from `foreigna_admin`.cpg130_sessions where session_id = 'ccf020afc196f4431cc5913092d8e41e' (0.001s)
        [5] => select user_id as id, user_password as password from `foreigna_admin`.cpg130_users where user_id=1 (0.003s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `foreigna_admin`.cpg130_users AS u INNER JOIN `foreigna_admin`.cpg130_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `foreigna_admin`.cpg130_users AS u WHERE user_id='1' and user_group_list <> ''; (0.002s)
        [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg130_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg130_usergroups WHERE group_id= 1 (0s)
        [10] => update `foreigna_admin`.cpg130_sessions set time='1368570687' where session_id = 'ccf020afc196f4431cc5913092d8e41e' (0.001s)
        [11] => SELECT user_favpics FROM cpg130_favpics WHERE user_id = 1 (0.008s)
        [12] => DELETE FROM cpg130_banned WHERE expiry < '2013-05-14 18:31:27' (0s)
        [13] => SELECT * FROM cpg130_banned WHERE (ip_addr='107.4.137.20' OR ip_addr='107.4.137.20' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg130_albums WHERE category < 10000 ORDER BY title (0s)
        [15] => SELECT aid, title FROM cpg130_albums WHERE category='10001' ORDER BY title (0s)
        [16] => SELECT COUNT(*) FROM cpg130_pictures WHERE approved = 'NO' (0.001s)
        [17] => SELECT unique_ID FROM cpg130_temp_data (0.003s)
        [18] => INSERT INTO cpg130_temp_data VALUES ('b8440441', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czo3OiJjYXQuanBnIjtzOjE0OiJ0ZW1wb3JhcnlfbmFtZSI7czoyMzoibUhUVFBfdGVtcF84NDAwZmIyNC5qcGciO319', '1368570687') (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
       
[URI_array] => Array
        (
           
  • =>
  • [1] =>
                [2] =>
            )

       
[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: ;
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886
    • Windsurf.me
Re: Weird stuff happening all of a sudden...
« Reply #1 on: May 15, 2013, 12:15:44 pm »

Can we have a link to your site please?
Logged
It is a mistake to think you can solve any major problems just with potatoes.

bizlur

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886
    • Windsurf.me
Re: Weird stuff happening all of a sudden...
« Reply #3 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

bizlur

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Weird stuff happening all of a sudden...
« Reply #4 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.
Logged

bizlur

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Weird stuff happening all of a sudden...
« Reply #5 on: May 15, 2013, 05:08:07 pm »

I just reverted to our old version, which I believe is 1.3.

Logged

bizlur

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Weird stuff happening all of a sudden...
« Reply #6 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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886
    • Windsurf.me
Re: Weird stuff happening all of a sudden...
« Reply #7 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.