Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Downloads Mod V1.01 - Error in /downloads_functions.php (7.02.07)

Asked Modified Viewed 1,378 times
D
Darra
D
Darra 10
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
asked
Member

Hey just a little error in /downloads_includes/downloads_functions.php and i don't know what to do with it

PHPFusion version is 7.02.07 and the addon is:
http://www.phpfusionmods.co.uk/downloads.php?download_cat=3&download_id=296

Details
Error: Undefined variable: license_colorbox_output Line: 165
File: includes/downloads_includes/downloads_functions.php

includes/downloads_includes/downloads_functions.php
Source code (Line: 155 - 169)
155                   $gnu = stripos($license, "GNU");
156                   if ($agpl === false && $gnu === false) {
157                    $license_colorbox_output = "<div class='license-message' style='margin-top: 20px; margin-bottom: 5px;'>
                     ".$locale['429c'].$data['download_license']."<div style='float: right; margin-top: 2px;'>\n</div>\n</div></a>";
158                   } else {
159                     $license_colorbox_output = "<a class='tozoomb' href='".BASEDIR."includes/downloads_includes/agpl.html'><div class='license-message'
                      style='margin-top: 20px; margin-bottom: 5px;'><strong>".$locale['429b']."</strong><div style='float: right; margin-top:
                      2px;'>\n</div>\n</div></a>";
160       }
161       }
162       }
163       }
164       }
165        return $license_colorbox_output;
166       }
167       }
168   
169   
Edited by N/A on 25-12-2015 10:29,
0 replies

2 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

If it is just an undefined notice while it in fact works you can just define it with
$license_colorbox_output = "";

In the beginning of the file or at least before it is called the first time.
0 replies
D
Darra
D
Darra 10
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

Yeah it works fine otherwise. Putting that line in the beginning or before its called first time didn't work, but replacing line 165 return $license_colorbox_output; with this return $license_colorbox_output = ""; got rid of the error, i don't have the knowledge of how but thanks.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
D
D
Darra 10
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet