Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Instalacja modułu - problem
mofetim
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 6.12.2007
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Proszę o pomoc...

Jestem zupelnym lamerem w kweti jezyka php (IMG:http://forum.php.pl/style_emoticons/default/wstydnis.gif)

Posiadam stronę w Limbo. Kiedy chce zainstalowac kolejny modul pojawiaja mi sie bledy:



Warning: opendir(/home/hosting/paulini.pl/seminarium.paulini.pl/public_html/modules/mod_lang/) [function.opendir]: failed to open dir: No such file or directory in /home/hosting/paulini.pl/seminarium.paulini.pl/public_html/includes/functions.php on line 80

Warning: readdir(): supplied argument is not a valid Directory resource in /home/hosting/paulini.pl/seminarium.paulini.pl/public_html/includes/functions.php on line 81

Fatal error: Call to a member function getElementByPath() on a non-object in /home/hosting/paulini.pl/seminarium.paulini.pl/public_html/admin/classes/class_install.php on line 99




Z bardzo nie wiem co z tym zrobic, nie moge znalezc nigdzie w Interencie odpowiedzi na ten temat nawet na oficjalnych forach limbo.

Chcialem zainstalowac modul ktory pozwolilby mi zmienic jezyk na stronie a jeszc
e lepiej gdybym mogl zmienic jednoczesnie i jezyk i template.

Prosze o odpowiedz..

Pozdrawiam i czekam z niepokojem.

Ten post edytował mofetim 6.12.2007, 15:02:25
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
mofetim
post
Post #2





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 6.12.2007
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Cysiaczek - widze ze jestes Spec wiec prosze pomoz (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Wybacz ale nie rozumiem (IMG:http://forum.php.pl/style_emoticons/default/wstydnis.gif) za bardzo o co chodzi - to jest fragment zrodla pierwszego pliku (element.inc.php) blad w linii 212, 174. Bledy wyskakuja tam gdzie jest
"return NULL;" - to sa te wiersze i kilka okalajacych:

Kod
niXMLError("MiniXMLElement::getElement() Must Pass Element name.");
             }
    
             if (! $this->xnumChildren )
             {
                 return NULL;
             }
             /* Try each child (immediate children take priority) */
             for ($i = 0; $i < $this->xnumChildren; $i++)
             {
                 $childname = $this->xchildren[$i]->name();
                 if ($childname)
                 {
                     if (MINIXML_CASESENSITIVE > 0)
                     {
                         /* case sensitive matches only */
                         if (strcmp($name, $childname) == 0)
                         {
                             return $this->xchildren[$i];
                         }
                     } else {
                         if (strcasecmp($name, $childname) == 0)
                         {
                             return $this->xchildren[$i];
                         }
                     }
                 }
    
             }
             for ($i = 0; $i < $this->xnumChildren; $i++)
             {
                 $theelement = $this->xchildren[$i]->getElement($name);
                 if ($theelement)
                 {
                     if (MINIXML_DEBUG > 0)
                     {
                         _MiniXMLLog("MiniXMLElement::getElement() returning element $theelement");
                     }
                     return $theelement;
                 }
             }
    
             /* Not found */
            return NULL;
    
    
         }  
         function &getElementByPath($path)
         {
             $names = split ("/", $path);
    
             $element = $this;
             foreach ($names as $elementName)
             {
                 if ($element && $elementName) /* Make sure we didn't hit a dead end and that we have a name*/
                 {
                     /* Ask this element to get the next child in path */
                     $element = $element->getElement($elementName);
                 }
             }

i


Drugi plik to treecomp.inc.php i takze blad jest w lini gdzie jest "return NULL;".


Kod
function & getElement ($name)
     {
         return NULL;
     }



Prosze o pomoc (pamietajcie ze ja naprawde jestem lamerem i licze na waas) (IMG:http://forum.php.pl/style_emoticons/default/wstydnis.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 01:27