kleines PHP Problem

Alles, was PHP betrifft, kann hier besprochen werden.

kleines PHP Problem

Postby schorni » 26. August 2009 14:21

Hallo,

ich habe gestern auf meinem Rechner xampp installiert, dazu Joomla beides funktioniert auch. Ich habe bei Joomla im Admin Bereich nur einige Fehlermeldungen die in den PHP Datein liegen. Zwei Fehler konnte ich schon beheben :D , nur hier komm ich nicht weiter,

Fehlermeldung unter Joomla: Warning: Parameter 1 to JHTMLGrid::access() expected to be a reference, value given in C:\xampp\htdocs\joomla\libraries\joomla\html\html.php on line 87

Ich weiß jetzt nur leider nicht wo ich und vor allem was ich ändern soll?

Hier die dazu passende Datei:
Code: Select all
**
 * @version      $Id: html.php 12350 2009-06-24 13:42:16Z ian $
 * @package      Joomla.Framework
 * @subpackage   HTML
 * @copyright   Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
 * @license      GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

/**
 * Utility class for all HTML drawing classes
 *
 * @static
 * @package    Joomla.Framework
 * @subpackage   HTML
 * @since      1.5
 */
class JHTML
{
   /**
    * Class loader method
    *
    * Additional arguments may be supplied and are passed to the sub-class.
    * Additional include paths are also able to be specified for third-party use
    *
    * @param   string   The name of helper method to load, (prefix).(class).function
    *                  prefix and class are optional and can be used to load custom
    *                  html helpers.
    */
   function _( $type )
   {
      //Initialise variables
      $prefix = 'JHTML';
      $file   = '';
      $func   = $type;

      // Check to see if we need to load a helper file
      $parts = explode('.', $type);

      switch(count($parts))
      {
         case 3 :
         {
            $prefix      = preg_replace( '#[^A-Z0-9_]#i', '', $parts[0] );
            $file      = preg_replace( '#[^A-Z0-9_]#i', '', $parts[1] );
            $func      = preg_replace( '#[^A-Z0-9_]#i', '', $parts[2] );
         } break;

         case 2 :
         {
            $file      = preg_replace( '#[^A-Z0-9_]#i', '', $parts[0] );
            $func      = preg_replace( '#[^A-Z0-9_]#i', '', $parts[1] );
         } break;
      }

      $className   = $prefix.ucfirst($file);

      if (!class_exists( $className ))
      {
         jimport('joomla.filesystem.path');
         if ($path = JPath::find(JHTML::addIncludePath(), strtolower($file).'.php'))
         {
            require_once $path;

            if (!class_exists( $className ))
            {
               JError::raiseWarning( 0, $className.'::' .$func. ' not found in file.' );
               return false;
            }
         }
         else
         {
            JError::raiseWarning( 0, $prefix.$file . ' not supported. File not found.' );
            return false;
         }
      }

      if (is_callable( array( $className, $func ) ))
      {
         $args = func_get_args();
         array_shift( $args );
         return call_user_func_array( array( $className, $func ), $args );
      }
      else
      {
         JError::raiseWarning( 0, $className.'::'.$func.' not supported.' );
         return false;
      }
   }



Ich bin auf diesem Gebiet absoluter Laie, wie man sieht/liest. Ich hoffe mir kann jemand eine einfache verständliche Hilfe geben...Hab da noch so ein paar Meldungen :(
Gruß Schorni
schorni
 
Posts: 1
Joined: 26. August 2009 14:07

Re: kleines PHP Problem

Postby Nobbie » 26. August 2009 20:20

Das ist kein kleines Problem sondern eine fette Programmierschlappe in Joomla. Da es aber anscheinend dennoch richtig läuft, ist es aus meiner Sicht das einfachste, in php.ini das Errorhandling so umzustellen, dass diese Fehler nicht angemault werden.

Ansonsten gibt es einige Seiten im Internet, die sich mit diesem Fehler beschäftigen und aufzeigen, in welchen Modulen u.a. Änderungen gemacht werden müssen. Das ist aber leider abhängig davon, welche Joomla Komponenten installiert sind, weswegen es keine universelle Lösung für dieses Problem gibt - außer, die Warnungsmeldungen einfach zu unterdrücken.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: kleines PHP Problem

Postby martinscott » 31. August 2009 07:27

hi im using the command system('traceroute ' . $addr); to traceroute ip's in php but nothing happens. system('ping ' . $addr); works fine but nothing with traceroute. any ideas?
martinscott
 
Posts: 1
Joined: 31. August 2009 07:18

Re: kleines PHP Problem

Postby davidbeckam » 02. September 2009 08:15

I'm trying to compile PHP 4.1.1 on a SunOS 5.8 box as a DSO module with mcrypt 2.4.18 (i.e. libmcrypt.so.4.2.8), I get loads of errors.
Last edited by davidbeckam on 25. February 2014 08:17, edited 1 time in total.
davidbeckam
 
Posts: 1
Joined: 31. August 2009 07:54

Re: kleines PHP Problem

Postby newyorkdd » 13. June 2011 06:55

Hi Nobbie,


Thanks for sharing your information........
newyorkdd
 
Posts: 1
Joined: 13. June 2011 06:23


Return to PHP

Who is online

Users browsing this forum: No registered users and 14 guests