Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11839
Latest: BugginIn
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42423
Total Topics: 7395
Most Online Today: 159
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 86
Total: 86

Author Topic: Error with 6.0a version  (Read 438 times)

0 Members and 1 Guest are viewing this topic.

Offline Hatshepsut

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 63
  • Perfectionist
    • View Profile
    • Bulgarian Nationalist Forum
Error with 6.0a version
« on: March 14, 2022, 02:13:14 am »
Hello,

I'm using Downloads System Pro 6.0a version on my SMF 2.1.1 forum, PHP version: 8.0.16, MySQL version: 10.3.34-MariaDB

I get error messages (~ 10-40 per day):

PHP Warning:  Undefined array key "percent" in /home/bulataka/public_html/BNF/Themes/default/Downloads2.1.template.php on line 4324
« Last Edit: March 14, 2022, 02:21:22 am by Hatshepsut »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16086
    • View Profile
Re: Error with 6.0a version
« Reply #1 on: March 15, 2022, 09:59:25 am »
Copy this to your themes/default folder fixes the bug
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Hatshepsut

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 63
  • Perfectionist
    • View Profile
    • Bulgarian Nationalist Forum
Re: Error with 6.0a version
« Reply #2 on: March 15, 2022, 11:54:38 pm »
I have replaced this file, but still get the same error messages.
Noticed that errors occur only when Downloads stats page is viewed, in group x10 at each time.

Also noticed, that I got these errors since one member has been rated 10 files in Downloads.
« Last Edit: March 16, 2022, 08:03:44 am by Hatshepsut »

Offline Hatshepsut

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 63
  • Perfectionist
    • View Profile
    • Bulgarian Nationalist Forum
Re: Error with 6.0a version
« Reply #3 on: April 26, 2022, 05:57:38 am »
I have edited template file and removed percent key. The errors disappear :)

(Lines 4320-4327)

Code: [Select]
foreach ($context['top_rating'] as $file)
    {
        echo '<dt>', $file['link'], '</dt>
        <dd class="statsbar generic_bar righttext">
 <div class="bar" style="width: ' . 0  . '%;"></div>
 <span>' . $file['rating'] . '</span>
 </dd>';
    }

Now top rated files are displayed as before, only with their rating stars.
Maybe the mod cannot transform rating star given to percent value?

Offline Hatshepsut

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 63
  • Perfectionist
    • View Profile
    • Bulgarian Nationalist Forum
Re: Error with 6.0a version
« Reply #4 on: April 26, 2022, 06:03:50 am »
Also I have removed an unnecessary ` character from line 4281:

Find:
Code: [Select]
</dl>   `
Replace with:
Code: [Select]
</dl>

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16086
    • View Profile
Re: Error with 6.0a version
« Reply #5 on: April 28, 2022, 06:12:09 am »
Changes added to newest release.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Hatshepsut

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 63
  • Perfectionist
    • View Profile
    • Bulgarian Nationalist Forum
Re: Error with 6.0a version
« Reply #6 on: May 10, 2022, 12:44:52 am »
Changes added to newest release.

Thanks, with new 6.0.2a version the errors are gone :)

 

Related Topics

  Subject / Started by Replies Last post
37 Replies
24484 Views
Last post December 27, 2007, 10:22:10 pm
by SMFHacks
6 Replies
6324 Views
Last post August 13, 2009, 10:08:32 pm
by SMFHacks
3 Replies
4976 Views
Last post November 19, 2012, 11:54:22 pm
by SeaChaser
3 Replies
1966 Views
Last post February 01, 2013, 08:51:39 pm
by phxmaximus
13 Replies
1502 Views
Last post January 06, 2021, 08:04:05 am
by davejo

+- Recent Topics

Custom badges by Hatshepsut
Today at 10:10:46 pm

Membergroup level by davejo
Today at 02:13:49 am

Setting a single free download. by SMFHacks
August 16, 2022, 09:50:04 am

Quick moderation checkboxes in search result? by SMFHacks
August 08, 2022, 10:37:03 am

Contact Page Mod Not Working by SMFHacks
August 05, 2022, 12:19:43 pm

Issues with new Newsletter Pro installation by SMFHacks
August 05, 2022, 07:15:18 am

SMFBlog Mod by Nicole
August 03, 2022, 09:46:22 pm

Contact Page by Nicole
August 03, 2022, 09:45:42 pm

trader + classifieds by Nicole
August 03, 2022, 05:05:17 pm

Category Permissions List by SMFHacks
July 30, 2022, 07:53:24 am

Powered by EzPortal