Advanced search  

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]

Pages: [1]   Go Down

Author Topic: 404 Errors and Wrong Links  (Read 3191 times)

0 Members and 1 Guest are viewing this topic.

adzempire

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
404 Errors and Wrong Links
« on: March 26, 2007, 04:59:05 am »

My Coppermine gallery was working well, but today something happened. Wherever I click, for example to view the thumbnails page, it gives me a 404 error. I investigated the problem and saw that it was linking to wierd links. For example http://screenshots.avatarrp.info/thumbnails-13.html. That's not supposed to happen. In my other Coppermine gallery it links to a php page with parameters. Here is a bunch of debug info and the site is http://screenshots.avatarrp.info if you wanna take a look.

USER:
------------------
Array
(
    [ID] => f96bf2bbda64065229810224320368f7
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 126
  • [1] => 184
                [2] => 9
            )

       
[search] => Array
        (
            [search] => appa
            [album] => search
            [newer_than] =>
            [older_than] =>
            [keywords] => on
            [type] => AND
            [params] => Array
                (
                    [keywords] => on
                )

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => adz
    [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 filetypes; (0s)
  • [1] => select * from plugins order by priority asc; (0s)
        [2] => delete from `avatpinf_screen`.sessions where time<1174874340 and remember=0; (0s)
        [3] => delete from `avatpinf_screen`.sessions where time<1173668340; (0s)
        [4] => select user_id from `avatpinf_screen`.sessions where session_id=md5("a618bc8c9dcde41ab14c9e254f4c561cbd3f14d9effa426a6ea5cb26a58a361b"); (0s)
        [5] => select user_id as id, user_password as password from `avatpinf_screen`.users where user_id=1 (0s)
        [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 `avatpinf_screen`.users AS u INNER JOIN `avatpinf_screen`.usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `avatpinf_screen`.users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [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 usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  usergroups WHERE group_id= 1 (0s)
        [10] => update `avatpinf_screen`.sessions set time='1174877940' where session_id=md5('a618bc8c9dcde41ab14c9e254f4c561cbd3f14d9effa426a6ea5cb26a58a361b'); (0s)
        [11] => SELECT user_favpics FROM favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM banned WHERE expiry < '2007-03-26 02:59:00' (0s)
        [13] => SELECT * FROM banned WHERE (ip_addr='72.80.234.108' OR ip_addr='72.80.234.108' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT cid, name, description, thumb FROM categories WHERE parent = ''  ORDER BY pos (0.001s)
        [15] => SELECT aid FROM albums as a WHERE category>=10000 (0s)
        [16] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
        [17] => SELECT cid, name, description, thumb FROM categories WHERE parent = '1'  ORDER BY pos (0s)
        [18] => SELECT aid FROM albums WHERE category = 2 (0s)
        [19] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0.001s)
        [20] => SELECT count(*) FROM albums as a WHERE category = '2' (0s)
        [21] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM albums as a LEFT JOIN pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,9 (0.001s)
        [22] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM albums AS a  LEFT JOIN pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (13, 14, 16, 17, 18, 19, 24, 25, 26)GROUP BY a.aid (0.004s)
        [23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='621' (0s)
        [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='625' (0s)
        [25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='619' (0s)
        [26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='620' (0s)
        [27] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='426' (0s)
        [28] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='616' (0s)
        [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='614' (0s)
        [30] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='610' (0s)
        [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='733' (0s)
        [32] => SELECT cid, name, description, thumb FROM categories WHERE parent = '2'  ORDER BY pos (0.001s)
        [33] => SELECT aid FROM albums WHERE category = 3 (0s)
        [34] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
        [35] => SELECT count(*) FROM albums as a WHERE category = '3' (0s)
        [36] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM albums as a LEFT JOIN pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [37] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM albums AS a  LEFT JOIN pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (15)GROUP BY a.aid (0.001s)
        [38] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='731' (0s)
        [39] => SELECT cid, name, description, thumb FROM categories WHERE parent = '3'  ORDER BY pos (0s)
        [40] => SELECT aid FROM albums WHERE category = 5 (0s)
        [41] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0s)
        [42] => SELECT cid, name, description, thumb FROM categories WHERE parent = '5'  ORDER BY pos (0s)
        [43] => SELECT aid FROM albums WHERE category = 6 (0s)
        [44] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
        [45] => SELECT count(*) FROM albums as a WHERE category = '6' (0s)
        [46] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM albums as a LEFT JOIN pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,3 (0s)
        [47] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM albums AS a  LEFT JOIN pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (8, 21, 22)GROUP BY a.aid (0.001s)
        [48] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='352' (0s)
        [49] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='551' (0s)
        [50] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM pictures WHERE pid='493' (0s)
        [51] => SELECT cid, name, description, thumb FROM categories WHERE parent = '6'  ORDER BY pos (0s)
        [52] => SELECT aid FROM albums WHERE category = 7 (0s)
        [53] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0s)
        [54] => SELECT aid FROM albums WHERE category = 8 (0s)
        [55] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 8 (0s)
        [56] => SELECT cid, name, description, thumb FROM categories WHERE parent = '8'  ORDER BY pos (0s)
        [57] => SELECT aid FROM albums WHERE category = 9 (0s)
        [58] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 9 (0s)
        [59] => SELECT aid FROM albums WHERE category = 10 (0s)
        [60] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 10 (0s)
        [61] => SELECT aid FROM albums WHERE category = 11 (0s)
        [62] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 11 (0s)
        [63] => SELECT aid FROM albums WHERE category = 12 (0s)
        [64] => SELECT count(*) FROM pictures as p, albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 12 (0s)
        [65] => SELECT aid FROM albums as a WHERE category = '0' (0s)
        [66] => SELECT count(*) FROM albums as a WHERE 1 (0s)
        [67] => SELECT count(*) FROM pictures as p LEFT JOIN albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.001s)
        [68] => SELECT count(*) FROM comments as c LEFT JOIN pictures as p ON c.pid=p.pid LEFT JOIN albums as a ON a.aid=p.aid WHERE 1 (0s)
        [69] => SELECT count(*) FROM categories WHERE 1 (0s)
        [70] => SELECT sum(hits) FROM pictures as p LEFT JOIN albums as a ON p.aid=a.aid WHERE 1 (0.002s)
        [71] => SELECT COUNT(*) FROM pictures WHERE approved = 'NO' (0.001s)
        [72] => SELECT count(*) FROM albums as a WHERE category = '0' (0s)
        [73] => SELECT COUNT(*) from pictures WHERE approved = 'YES'  (0.001s)
        [74] => SELECT * FROM pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.018s)
        [75] => SELECT COUNT(*) from pictures WHERE approved = 'YES'  (0.001s)
        [76] => SELECT * FROM pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0.001s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.4 - OK
    ------------------
    mySQL version: 4.1.21-standard
    ------------------
    Coppermine version: 1.4.10(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 compatible)
    FreeType Support:
    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 1
    Active Links 2
    Client API version 4.1.21
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.3
    Linked Version 1.2.3
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | 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 | .:/usr/local/lib/php
    open_basedir | /home/avatpinf/:/tmp:/usr/local/lib/php/ | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i -f avatpinf@avatarrp.info | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    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 | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.173 seconds - 77 queries in 0.036 seconds - Album set : ; Meta set: ;
« Last Edit: March 26, 2007, 02:51:18 pm by GauGau »
Logged

adzempire

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: 404 Errors and Wrong Links
« Reply #1 on: March 26, 2007, 05:00:12 am »

Also I tried reseting the Options to factory settings but it still won't work.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: 404 Errors and Wrong Links
« Reply #2 on: March 26, 2007, 07:52:37 am »

Turn the experimental SEF_URLs plugin off (using the plugin manager) and clear possible leftover .htaccess files in coppermine's root folder if the SEF_URL doesn't work for you.
Logged

adzempire

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: 404 Errors and Wrong Links
« Reply #3 on: March 26, 2007, 02:13:22 pm »

Turn the experimental SEF_URLs plugin off (using the plugin manager) and clear possible leftover .htaccess files in coppermine's root folder if the SEF_URL doesn't work for you.

Thank you SOO much GauGau! It works now!
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 20 queries.