Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Using $this when not in object context in, Using $this when not in object context i
tidnab
post
Post #1





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 7.08.2004

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


Witam

Mam maly problem z webmailem HORDE 3.0-APLHA. Na stronie test.php
wywala mi blad:

Fatal error: Using $this when not in object context in
/var/www/htdocs/horde/test.php on line 76

Skrypty sa napewno w porzadku, problem lezy raczej w jakichs ustawieniach.

System to Slack 9.1, Apache/2.0.48, php 5.1.0-dev skompilowane z opcjami:
'--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-mysql=/usr/local/mysql' '--enable-shared=yes' '--enable-ftp'
'--enable-exif' '--enable-calendar' '--with-track-vars' '--with-gettext'
'--with-xml' '--with-imap-ssl' '--with-imap'
Zainstalowane odpowiednie PEAR.

Czy ktos sie z tym spotkal?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
..:: pingu ::..
post
Post #2





Grupa: Zarejestrowani
Postów: 83
Pomógł: 0
Dołączył: 15.12.2003
Skąd: Mikołów

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


to jest raczej błąd skryptu, dasz jakis kawałek kodu ?
Go to the top of the page
+Quote Post
tidnab
post
Post #3





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 7.08.2004

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


  1. <?php
  2.  
  3. /* Application versions */
  4. $this->applications = array();
  5. @include_once './config/registry.php';
  6. foreach ($this->applications as $module => $details) {
  7.     if (is_readable($details['fileroot'] . '/lib/version.php')) {
  8.         include_once $details['fileroot'] . '/lib/version.php';
  9.         eval('$defined = defined('' . strtoupper($module) . '_VERSION&#092;');');
  10.         if ($defined) {
  11.             eval('$ver = ' . strtoupper($module) . '_VERSION;');
  12.             $versions[$module] = $ver;
  13.             if ($module != 'horde' && @is_readable($details['fileroot'] . '/test.php')) {
  14.                 $testphp[$module] = $details['webroot'] . '/test.php';
  15.             }
  16.         }
  17.     }
  18. }?>


http://groups.google.pl/groups?hl=pl&lr=&i...7706bb20&rnum=7
to mniej wiecej to samo

--
Jak sie okazalo ten blad jest w php5 a wiec musialem skompilowac ver 4.3.9 dev

Ten post edytował tidnab 9.08.2004, 15:38:19
Go to the top of the page
+Quote Post

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: 22.08.2025 - 13:22