Our FamilyForum

FamilyForum Documentation & Help => FamilyForum Features & Guidelines => Code & Stuff => Topic started by: Ken on February 07, 2015, 06:50:27 PM

Title: [FIX] Gallery; "The Category Dosen't Exist
Post by: Ken on February 07, 2015, 06:50:27 PM
Problem:
When trying to access any of the albums in sub-category's the following error page comes up.

Quote
An Error Has Occurred!
The category doesn't exist.
...it is being caused by a conflict with one of the TinyPortal files.

Fixed it with a coding edit supplied by IchBin™.
... anyone using this edit should backup your files.

Quote from: IchBin™

    A temporary fix in Sources/TPortal.php about line #1024 you can find this code:
 
Code: [Select]
    //return if not quite a category
    if(isset($_GET['action']) && $_GET['action'] == 'manageboards')
    return;


    Change it to this:
 
Code: [Select]
    //return if not quite a category
    if(isset($_GET['action']) && ($_GET['action'] == 'manageboards' || $_GET['action'] == 'gallery'))
    return;
Title: Re: [FIX] Gallery; "The Category Dosen't Exist
Post by: Skhilled on February 08, 2015, 08:58:45 AM
That's good to know. :)