SMFHacks.com

Downloads System Pro => Support => Topic started by: Shades on May 14, 2022, 04:04:04 pm

Title: Undefined index: down_path
Post by: Shades on May 14, 2022, 04:04:04 pm
SMF 2.1.2
Downloads Pro v6.0.3

Getting this error after regenerating thumbnails:

Quote
Error
Type of error
Undefined_vars
Error message
8: Undefined index: down_path
File
/home/*****/public_html/Sources/Downloads2.php
Line
10785
URL of page causing the error
https://*****.com/?action=downloads;sa=regen2

Backtrace information
#0: smf_error_handler()
Called from /home/*****/public_html/Sources/Downloads2.php on line 10785
#1: Downloads_ReGenerateThumbnails2()
Called from /home/*****/public_html/Sources/Downloads2.php on line 257
#2: DownloadsMain()
Called from /home/*****/public_html/index.php on line 194

Also when editing a download it takes me back to the categories page instead of the download that I was editing.
Title: Re: Undefined index: down_path
Post by: SMFHacks on May 14, 2022, 10:44:27 pm
Fixed both for next update.
Title: Re: Undefined index: down_path
Post by: Shades on May 15, 2022, 12:24:25 pm
Just noticed this but when just editing the text and clicking on "Edit Download" it takes me back to the page of the download I was editing but if I upload a new file for download it takes me back to the category page!
Title: Re: Undefined index: down_path
Post by: SMFHacks on May 15, 2022, 12:55:42 pm
That should be changed in next update as well.
Title: Re: Undefined index: down_path
Post by: Shades on May 18, 2022, 09:56:19 am
Just got this error today when a guest tried to download and also got the same error when I tried to download the file:

Quote
Error
Type of error
Database
Error message
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''7\'' at line 4



SELECT

p.ID_FILE

FROM smf_down_file as p

WHERE p.seourl = '7\'
File
/home/*****/public_html/Sources/Downloads2.php
Line
1283
URL of page causing the error
https://*****.com/?action=downloads;sa=view;id=7\

Backtrace information
#0: smf_db_error()
Called from /home/*****/public_html/Sources/Subs-Db-mysql.php on line 494
#1: smf_db_query()
Called from /home/*****/public_html/Sources/Downloads2.php on line 1283
#2: Downloads_ViewDownload()
Called from /home/*****/public_html/Sources/Downloads2.php on line 257
#3: DownloadsMain()
Called from /home/*****/public_html/index.php on line 194
Title: Re: Undefined index: down_path
Post by: SMFHacks on May 18, 2022, 10:06:50 am
The url looks bad are you clicking a bad link?  ?action=downloads;sa=view;id=7\
Shouldn't end in \
Title: Re: Undefined index: down_path
Post by: Shades on May 18, 2022, 10:19:09 am
I clicked the link in the error (sorry), the actual link on the download page works fine so I'm not sure where the guest clicked that link from!? ???