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?

infusions.php error

Asked Modified Viewed 1,473 times
C
chrome511
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
asked
Member

my PHPFusion version: 7.02.07
Error:    Undefined index: image    Row:    96

  $inf_admin_image = ($inf_adminpanel[$i]['image'] ? $inf_adminpanel[$i]['image'] : "infusion_panel.gif");


Rows 93-98
93           if (isset($inf_adminpanel) && is_array($inf_adminpanel) && count($inf_adminpanel)) {
94                    for ($i = 1; $i < (count($inf_adminpanel) + 1); $i++) {
95                        $error = 0;
96                        $inf_admin_image = ($inf_adminpanel[$i]['image'] ? $inf_adminpanel[$i]['image'] : "infusion_panel.gif");
97                        if (!dbcount("(admin_id)", DB_ADMIN, "admin_rights='".$inf_adminpanel[$i]['rights']."'")) {
98                            $result = dbquery("INSERT INTO ".DB_ADMIN." (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES
                            ('".$inf_adminpanel[$i]['rights']."', '".$inf_admin_image."', '".$inf_adminpanel[$i]['title']."',
                            '".INFUSIONS.$inf_folder."/".$inf_adminpanel[$i]['panel']."', '5')");


the image "infusion_panel.gif" exist in the dictionary /administration/images/.
why became i this error message?

this error comes after install the infusion"vaContact" (kontakt und impressum).
the infusion is attached and ONLY german.

sorry for my englisch i'm from germany.
Edited by chrome511 on 19-09-2014 19:40,
chrome511 attached the following file:
kontakt_und_impressum.zip [No information available / 242 Downloads]
0 replies

4 posts

D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Maybe change the lines 71 of infusion.php with:

$inf_adminpanel[1] = array(
   "title" => "va Impressum",
   "image" => "yourimage.jpg",
   "panel" => "corefiles/core.php",
   "rights" => "VA1"
0 replies
C
chrome511
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

thank you

this was the error.
when i want to install this infusion now there are no errors

Merged on Sep 19 2014 at 20:35:00:
must the infusion images in the administration dictionary or can it in any other?
Edited by chrome511 on 19-09-2014 20:35,
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Image must in administration/images

If you want an different location specify full path. example:

   "image" => "../../infusions/concours/images/concours.gif",


But remember: Full length of the path inc. image name must not exceed 50 characers! The field in the database for storing the path to the image has length of 50 charachters. You may shorten the filename to stay under 50 chars.
0 replies
C
chrome511
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

ok thanks
Edited by chrome511 on 24-09-2014 12:51,
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

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

2 participants

D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
C
C
sorry for my english.
i´m from germany
  • Member, joined since
  • Contributed 73 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