SMFHacks.com

SMF Gallery Pro => Support => Topic started by: Shades on March 21, 2022, 08:14:29 pm

Title: Errors adding images to categories
Post by: Shades on March 21, 2022, 08:14:29 pm
SMF 2.1.1
SMF Gallery Pro   9.0.1b

When adding icons to categories in admin I'm getting these errors:

Quote
Error
Type of error
Undefined_vars
Error message
8: Undefined index: id_topic
File
/home2/*****/public_html/*****/Sources/Gallery2.php
Line
1135
URL of page causing the error
https://*****.com/?action=gallery;sa=editcat2

Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/Gallery2.php on line 1135
#1: EditCategory2()
Called from /home2/*****/public_html/*****/Sources/Gallery2.php on line 301
#2: GalleryMain()
Called from /home2/*****/public_html/*****/index.php on line 187

Quote
Error
Type of error
Undefined_vars
Error message
8: Undefined index: displaymode
File
/home2/*****/public_html/*****/Sources/Gallery2.php
Line
1142
URL of page causing the error
https://*****.com/?action=gallery;sa=editcat2

Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/Gallery2.php on line 1142
#1: EditCategory2()
Called from /home2/*****/public_html/*****/Sources/Gallery2.php on line 301
#2: GalleryMain()
Called from /home2/*****/public_html/*****/index.php on line 187

It adds the image but these errors pop up in admin!
Title: Re: Errors adding images to categories
Post by: Shades on March 21, 2022, 08:17:59 pm
Actually this only happens for the User Gallery category!
Title: Re: Errors adding images to categories
Post by: SMFHacks on March 25, 2022, 10:25:18 pm
Check if this file copied to sources folder works.
Title: Re: Errors adding images to categories
Post by: Shades on March 25, 2022, 11:33:04 pm
I believe that fixed it thank you! 8)