Error when trying to create an album Error when trying to create an album
 

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]

Main Menu

Error when trying to create an album

Started by danithemes, December 03, 2014, 03:42:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

danithemes

I'm having issues when trying to create an album, the button doesn't work! http://danithemes.fanscity.eu/designs
This is the code error (debug) I get when trying to create an album.

USER:
------------------
Array
(
    [ID] => 0ad2adf5c23380159d53fb973cbef906
    [am] => 1
    [lang] => spanish
)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [can_create_public_albums] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpg_config [include/init.inc.php:179] (0.35 ms)
    [1] => SELECT * FROM cpg_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0.24 ms)
    [2] => SELECT user_id, time FROM `danithem_cpg684`.cpg_sessions WHERE session_id = 'e7bff9b6217ae39a4c8df3e0d94e18be' [bridge/coppermine.inc.php:267] (0.15 ms)
    [3] => SELECT user_id, user_password FROM `danithem_cpg684`.cpg_users WHERE user_id = 1 [bridge/coppermine.inc.php:279] (0.13 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `danithem_cpg684`.cpg_users AS u LEFT JOIN `danithem_cpg684`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0.16 ms)
    [5] => SELECT user_group_list FROM `danithem_cpg684`.cpg_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:205] (0.08 ms)
    [6] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:323] (0.1 ms)
    [7] => SELECT group_name FROM cpg_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0.06 ms)
    [8] => SELECT COUNT(*) FROM cpg_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:340] (0.1 ms)
    [9] => UPDATE `danithem_cpg684`.cpg_sessions SET time = 1417617331 WHERE session_id = 'e7bff9b6217ae39a4c8df3e0d94e18be' [bridge/coppermine.inc.php:324] (0.19 ms)
    [10] => UPDATE `danithem_cpg684`.cpg_users SET user_lastvisit = NOW() WHERE user_id = '1' [bridge/coppermine.inc.php:328] (0.16 ms)
    [11] => SELECT lang_id FROM cpg_languages WHERE enabled='YES' [include/init.inc.php:330] (0.27 ms)
    [12] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 [include/init.inc.php:388] (0.16 ms)
    [13] => DELETE FROM cpg_banned WHERE expiry < '2014-12-03 14:35:31' [include/init.inc.php:444] (0.24 ms)
    [14] => SELECT null FROM cpg_banned WHERE (user_id=1 OR '190.191.159.28' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.08 ms)
    [15] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' [include/functions.inc.php:2422] (0.14 ms)
    [16] => SELECT lang_id, abbr FROM cpg_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2292] (0.14 ms)
    [17] => SELECT aid, title FROM cpg_albums WHERE category = 0 ORDER BY pos ASC [albmgr.php:151] (0.19 ms)
    [18] => SELECT cid, name, description FROM cpg_categories WHERE parent = '0' AND cid != 1 ORDER BY pos [albmgr.php:64] (0.19 ms)
    [19] => SELECT cid, name, description FROM cpg_categories WHERE parent = '2' AND cid != 1 ORDER BY pos [albmgr.php:64] (0.1 ms)
    [20] => SELECT cid, name, description FROM cpg_categories WHERE parent = '3' AND cid != 1 ORDER BY pos [albmgr.php:64] (0.1 ms)
    [21] => SELECT cid, name, description FROM cpg_categories WHERE parent = '4' AND cid != 1 ORDER BY pos [albmgr.php:64] (0.07 ms)
    [22] => SELECT cid, name, description FROM cpg_categories WHERE parent = '5' AND cid != 1 ORDER BY pos [albmgr.php:64] (0.08 ms)
)

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

==========================
POST :
------------------
Array
(
)

==========================
COOKIE :
------------------
Array
(
    [69a71511e885535bf9e025d4180a9245] => d8b0f0c5ce3ce315236a29860abcde3c
    [57b324e687a379007e56c83dad38a562] => ce8b27ae45f3cf5504f59635c986e16d
    [669e6b462733a6736d853dc4870b9099] => 221ee07ecdec2dd6ce6f2ea7903c4398
    [cpg15x_data] => YTozOntzOjI6IklEIjtzOjMyOiIwYWQyYWRmNWMyMzM4MDE1OWQ1M2ZiOTczY2JlZjkwNiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJzcGFuaXNoIjt9
    [PHPSESSID] => hal3upn5vvpfdel3m0l2df3mq6
)

==========================
SESSION :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version        5.3.29         OK   
MySQL version      5.5.40-MariaDB OK   
Coppermine version 1.5.34         stable

==========================
Module: GD
------------------
Exact version                    2.1.0                     
GD Version                       bundled (2.1.0 compatible)
FreeType Support                 1                         
FreeType Linkage                 with freetype             
T1Lib Support                    1                         
GIF Read Support                 1                         
GIF Create Support               1                         
JPEG Support                     1                         
PNG Support                      1                         
WBMP Support                     1                         
XPM Support                      1                         
XBM Support                      1                         
JIS-mapped Japanese Font Support                           

==========================
Key config settings
------------------
site_url             http://danithemes.fanscity.eu/designs/     
charset              utf-8                                       
allow_private_albums 1                                           
cookie_name          cpg15x                                     
cookie_path          /                                           
impath               /usr/bin/                                   
lang                 spanish                                     
main_page_layout     breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode      0                                           
smtp_host                                                       
theme                classic_vstrip                             
thumb_method         gd2                                         

==========================
Plugins
------------------

==========================
Server restrictions
------------------
safe_mode                                                                                                                         
safe_mode_exec_dir                                                                                                               
safe_mode_gid                                                                                                                     
safe_mode_include_dir                                                                                                             
sql.safe_mode                                                                                                                     
disable_functions        shell,system,passthru,exec,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec
file_uploads             1                                                                                                       
include_path             .:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php                                             
open_basedir             /home/danithemes:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp         
allow_url_fopen                                                                                                                   
max_execution_time       120                                                                                                     
max_input_time           120                                                                                                     
upload_max_filesize      32M                                                                                                     
post_max_size            32M                                                                                                     
memory_limit             192M                                                                                                     
suhosin.post.max_vars                                                                                                             
suhosin.request.max_vars                                                                                                         


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     1,08 Mb  4,07 Mb
Page generation  51.21 ms 51.21 ms
Page query time  3.48 ms  3.48 ms
Page query count 23       23     


==========================
               


Here's the test user account data:
    Username: test
    Password: test


I have no idea what else to do.
Thanks in advance for your suggestions

allvip

The New Album button uses jquery and stopped working because you have 3 diffrent jquery versions loading on the page.

You have included jquery 3 times on your pages. That creates a jquery conflict.
Is enough to have it included once for all jquery codes on the page to work.

By default coppermine has jquery-1.3.2 loading on pages  (is in the js folder of coppermine) and you included proabibly in themes/your_theme_name/template.html :

1) jquery-1.11.0: <script src="http://danithemes..............2014/11/jquery-1.11.0.min_.js"></script>
2) jquery-1.9.1 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

You don't need that. Delete them because your  jquery plugins (code) will use 1.3.2 that already loads on the pages.
If your jquery scripts will not work with 1.3.2 then use  jQuery update plugin to replace coppermine jquery 1.3.2 with 1.11.0: http://forum.coppermine-gallery.net/index.php/topic,77595.0.html .

Let's hope all the jquery plugins (animated_bg.js, cufon etc) you use will work with 1.11.0 because is not possible to load 2 or more jquery versions on the same page. Will create a jquery conflict that can make the jquery scripts to stop working.

allvip

#2
In mozilla firefox, right click on the page, choose View page source and will show you all your page code.
You will see all the jquery: 1.3.2, 1.11.1 and 1.9.1.

You can use a diffrent theme for admin pages: http://forum.coppermine-gallery.net/index.php/topic,77166.0.html that does not have all your jquery plugins, but that does not mean you can use more then one jquery version on a page. You still need to fix that for all the pages.

You have only 3 images in your gallery, but if you upload more, you will proabibly see that filmstrip is not workin either. Rating is not working.

View you gallery with a diffrent theme: http://danithemes.fanscity.eu/designs/index.php?theme=water_drop. You will see that album manger is working fine. I just created album test and allvip in my gallery (you have to remember to delete them).

If your jquery plugins will not work with 1.11.1, I can assist you to find a solution.