Deutschland United States United Kingdom
ContentLion - Open Source CMS

QR-Code Generator

QR-Code Generator

Bei mir kommt bei der Seite folgender Fehler:

Quellcode

1
Notice: Undefined offset: -1 in /var/customers/webs/kingdom/contentlion/system/plugins/qrgenerator/classes/codegenpage.php on line 38 Call Stack: 0.0003 678968 1. {main}() /var/customers/webs/kingdom/contentlion/index.php:0 0.0092 1910192 2. SkinController::displayCurrent() /var/customers/webs/kingdom/contentlion/index.php:27 0.0098 1970616 3. include('/var/customers/webs/kingdom/contentlion/system/skins/backenddefault/index.php') /var/customers/webs/kingdom/contentlion/system/classes/skincontroller.php:141 0.0195 2286664 4. sys::includeContent() /var/customers/webs/kingdom/contentlion/system/skins/backenddefault/index.php:48 0.0195 2286664 5. Page->getContent() /var/customers/webs/kingdom/contentlion/system/classes/sys.php:4 0.0201 2306032 6. plugin_qrgenerator_CodeGenPage->display() /var/customers/webs/kingdom/contentlion/system/classes/page.php:112 Notice: Trying to get property of non-object in /var/customers/webs/kingdom/contentlion/system/plugins/qrgenerator/classes/codegenpage.php on line 38 Call Stack: 0.0003 678968 1. {main}() /var/customers/webs/kingdom/contentlion/index.php:0 0.0092 1910192 2. SkinController::displayCurrent() /var/customers/webs/kingdom/contentlion/index.php:27 0.0098 1970616 3. include('/var/customers/webs/kingdom/contentlion/system/skins/backenddefault/index.php') /var/customers/webs/kingdom/contentlion/system/classes/skincontroller.php:141 0.0195 2286664 4. sys::includeContent() /var/customers/webs/kingdom/contentlion/system/skins/backenddefault/index.php:48 0.0195 2286664 5. Page->getContent() /var/customers/webs/kingdom/contentlion/system/classes/sys.php:4 0.0201 2306032 6. plugin_qrgenerator_CodeGenPage->display() /var/customers/webs/kingdom/contentlion/system/classes/page.php:112 

Außerdem hat das Dashboard bei mir haufen Fehler:
(auf nem Webspace)


Hier die Fehler mal im Klartext:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Warning: file_exists(): open_basedir restriction in effect. File(../system/skins/backenddefault/icons/page_find.png) is not within the allowed path(s): (/var/customers/webs/kingdom/contentlion/:/tmp/:/var/customers/tmp/kingdom/::/usr/share/php/:/usr/share/php5/:/usr/share/php/PEAR/) in /var/customers/webs/kingdom/contentlion/system/classes/icons.php on line 16

Call Stack:
    0.0002     677880   1. {main}() /var/customers/webs/kingdom/contentlion/index.php:0
    0.0069    1676936   2. Page->ExecuteHttpHeader() /var/customers/webs/kingdom/contentlion/index.php:21
    0.0069    1676936   3. Page->getEditor() /var/customers/webs/kingdom/contentlion/system/classes/page.php:431
    0.0081    1861792   4. Dashboard->__construct() /var/customers/webs/kingdom/contentlion/system/classes/page.php:97
    0.0081    1861792   5. Dashboard->loadAllWidgets() /var/customers/webs/kingdom/contentlion/system/classes/dashboard.php:23
    0.0083    1862384   6. Dashboard->loadWidgetsByColumn() /var/customers/webs/kingdom/contentlion/system/classes/dashboard.php:30
    0.0096    2012008   7. PageListWidget->load() /var/customers/webs/kingdom/contentlion/system/classes/dashboard.php:52
    0.0183    2435624   8. Template->getCode() /var/customers/webs/kingdom/contentlion/system/plugins/pagelistwidget/pagelistwidget.php:51
    0.0196    2484312   9. Template->replaceIcons() /var/customers/webs/kingdom/contentlion/system/classes/template.php:269
    0.0198    2515408  10. Icons::getIcon() /var/customers/webs/kingdom/contentlion/system/classes/template.php:209
    0.0199    2515672  11. file_exists() /var/customers/webs/kingdom/contentlion/system/classes/icons.php:16


Warning: file_exists(): open_basedir restriction in effect. File(../system/skins/backenddefault/icons/page_edit.png) is not within the allowed path(s): (/var/customers/webs/kingdom/contentlion/:/tmp/:/var/customers/tmp/kingdom/::/usr/share/php/:/usr/share/php5/:/usr/share/php/PEAR/) in /var/customers/webs/kingdom/contentlion/system/classes/icons.php on line 16

Call Stack:
    0.0002     677880   1. {main}() /var/customers/webs/kingdom/contentlion/index.php:0
    0.0069    1676936   2. Page->ExecuteHttpHeader() /var/customers/webs/kingdom/contentlion/index.php:21
    0.0069    1676936   3. Page->getEditor() /var/customers/webs/kingdom/contentlion/system/classes/page.php:431
    0.0081    1861792   4. Dashboard->__construct() /var/customers/webs/kingdom/contentlion/system/classes/page.php:97
    0.0081    1861792   5. Dashboard->loadAllWidgets() /var/customers/webs/kingdom/contentlion/system/classes/dashboard.php:23
    0.0083    1862384   6. Dashboard->loadWidgetsByColumn() /var/customers/webs/kingdom/contentlion/system/classes/dashboard.php:30
    0.0096    2012008   7. PageListWidget->load() /var/customers/webs/kingdom/contentlion/system/classes/dashboard.php:52
    0.0183    2435624   8. Template->getCode() /var/customers/webs/kingdom/contentlion/system/plugins/pagelistwidget/pagelistwidget.php:51
    0.0196    2484312   9. Template->replaceIcons() /var/customers/webs/kingdom/contentlion/system/classes/template.php:269
    0.0204    2516416  10. Icons::getIcon() /var/customers/webs/kingdom/contentlion/system/classes/template.php:209
    0.0204    2516680  11. file_exists() /var/customers/webs/kingdom/contentlion/system/classes/icons.php:16

Juhuu! :D
Habe den Fehler gefunden! :D

Die Datei icons.php sieht derzeit so aus:

PHP-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?PHP
  /**
  * @package ContentLion-Core
  * @author Stefan Wienstroeer
  * @link http://blog.stevieswebsite.de/2010/05/icon-klasse-cms/
  */
  class Icons{
  
  /**
   *
   * @param string $name
   * @return string 
   */
  public static function getIcon($name){
    $res Settings::getInstance()->get("host");
    if(file_exists("../system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png")){
      $res .= "system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png";
    }
    else{
      $res .= "system/images/icons/".Settings::getInstance()->get("iconset")."/".strtolower($name).".png";
    }
    return $res;
  }

}
?>


Sie muss aber wie folgt aussehen:

PHP-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?PHP
  /**
  * @package ContentLion-Core
  * @author Stefan Wienstroeer
  * @link http://blog.stevieswebsite.de/2010/05/icon-klasse-cms/
  */
  class Icons{
  
  /**
   *
   * @param string $name
   * @return string 
   */
  public static function getIcon($name){
    $res Settings::getInstance()->get("host");
    if(file_exists(Settings::getInstance()->get("root") . "system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png")){
      $res .= "system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png";
    }
    else{
      $res .= "system/images/icons/".Settings::getInstance()->get("iconset")."/".strtolower($name).".png";
    }
    return $res;
  }

}
?>


Was hat sich geändert?:
Nur diese Zeile:

PHP-Quelltext

1
    if(file_exists(Settings::getInstance()->get("root") . "system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png")){


Wie ihr seht, gebe ich mit der Einstellung "root" den kompletten Pfad an und nicht ein "../", wie es vorher war.
Bei eingestelltem Open-Base-Schutz kam es wegen dem "../" sonst zu einem Fehler. ;)

Dann fehlt bei dir igrend eine Instalation auf dem Webspace. ;) Aber warum QR-Generator^^

Les mal den Post oben drüber. ^^
Es sind 2 Fehler, ein allgemeiner und einer bei deinem Plugin. ;)

Das leigt an meinem Internet sry^^ Ausserdem hast du schneller geantwortet als ich^^

Ähnliche Themen