Back to top

Autore Topic: Warning: Class '\Joomla\Registry e Fatal error: Class 'JRegistry' not found  (Letto 3867 volte)

Offline Funghetto

  • Nuovo arrivato
  • *
  • Post: 44
    • Mostra profilo
Ciao, ho un problema, senza aver fatto alcun intervento, stamattina mi si presenta sito offline con questo errore...
Warning: Class '\Joomla\Registry\Registry' not found in /web/htdocs/www.miosito.it/home/libraries/loader.php on line 491
Fatal error: Class 'JRegistry' not found in /web/htdocs/www.miosito.it/home/libraries/joomla/application/web.php on line 117
Cosa può essere stato? Come posso risolvere? Grazie!
« Ultima modifica: 29 Giu 2018, 11:04:43 da Funghetto »

Offline Alex21

  • Appassionato
  • ***
  • Post: 645
    • Mostra profilo
Ciao,
se non hai fatto assolutamente niente è possibile che sia stato un intervento esterno.
Riesci a vedere se ci sono file alterati recentemente? 27/6  e  28/06   e  29/06 ?
La data si può cambiare da script, quindi sarebbe bene riuscire ad esaminare anche l' inode.
Che versione di joomla hai in uso?


Bye.

Offline Funghetto

  • Nuovo arrivato
  • *
  • Post: 44
    • Mostra profilo
Il file loader.php risulta effettivamente modificato ieri.
La versione di Joomla è la 3.3

Offline matty80

  • Global Moderator
  • Instancabile
  • *****
  • Post: 3974
  • Sesso: Maschio
    • Mostra profilo
La versione di Joomla è la 3.3
i cms vanno tenuti aggiornati, hai un backup? rispristina ed aggiorna!
Chi non ha mai posseduto un cane, non sa cosa significhi essere amato. Arthur Schopenhauer

Offline Alex21

  • Appassionato
  • ***
  • Post: 645
    • Mostra profilo
Scusa ma stai prendendo la cosa un po' superficialmente, penso.  Joomla_3.0.2-Stable-Full_Package/libraries/loader.php ha 368 righe.
Joomla_3.8.8-Stable-Full_Package/libraries/loader.php  ha 834 righe.
File modificato, ok, ma come? Cosa c'è dentro adesso?  Se è un hackeraggio ce ne saranno molti altri. Se non lo è bisogna vedere cosa altro è successo.
Se hai un backup puoi ripristinare e il sito ritornerà a funzionare.  Però sarebbe meglio, prima del ripristino, riuscire a capire cosa è successo, anche per prevenire.
Puoi fare, dopo il ripristino un aggiornamento ad una versione di joomla più recente. Prima del ripristino è meglio cancellare tutti i files esistenti e svuotare il database perché l' aggiornamento non elimina cose non joomla, magari malevoli se presenti.
Ciao.

Offline Funghetto

  • Nuovo arrivato
  • *
  • Post: 44
    • Mostra profilo
La parte diversa è questa:

Loop through paths registered to this namespace until we find a match.

foreach ($paths as $path)
{
$classFilePath = realpath($path . DIRECTORY_SEPARATOR . substr_replace($classPath, '', 0, strlen($nsPath) + 1));
// We do not allow files outside the namespace root to be loaded
if (strpos($classFilePath, realpath($path)) !== 0)
{
continue;
}

// We check for class_exists to handle case-sensitive file systems
if (file_exists($classFilePath) && !class_exists($class, false))
{
return (bool) include_once $classFilePath;



In origine era così:
Loop through registered namespaces until we find a match.
foreach (self::$namespaces as $ns => $paths)
{
if (strpos($class, $ns) === 0)
{
// Loop through paths registered to this namespace until we find a match.
foreach ($paths as $path)
{
$classFilePath = $path . DIRECTORY_SEPARATOR . $classPath;

// We check for class_exists to handle case-sensitive file systems
if (file_exists($classFilePath) && !class_exists($class, false))
{
return (bool) include_once $classFilePath;

Offline danielecr

  • Abituale
  • ****
  • Post: 1357
    • Mostra profilo
prova a sovrascrivere la cartella libraries con la cartella libraries presa dal pacchetto originale della tua versione di joomla.

Offline tomtomeight

  • Global Moderator
  • Fuori controllo
  • ********
  • Post: 32046
  • Sesso: Maschio
  • Gli automatismi aiutano ma non insegnano nulla.
    • Mostra profilo
Scusate ma ho rimosso post non inerenti la prima richiesta, avevo diviso il post intruso ma sembra senza esito, allora reinvito tutti compresi gli altri moderatori a non rispondere a chi si intrufola, se non per invitarlo ad aprire un nuovo post o se possibile a dividere lo stesso. Giusto per tenere il forum ordinato e non coprire l'autore primario del post. Grazie per l'attenzione.

Offline Alex21

  • Appassionato
  • ***
  • Post: 645
    • Mostra profilo

Se ti può essere di aiuto mi sono appena accorto di un sito con file modificati dall' esterno.
Il sito funziona, non dà errore come da te. Ho esaminato 6, 7 file modificati e non trovo traccia di codice malevolo.
Riguardo al responsabile, ho un modesto sospetto relativo ad una procedura automatica di aggiornamento di Gantry, però non ho accesso ai log e anche se ce l'avessi dubito che andrei veramente a spulciarli, visto che non ho trovato nei file esaminati del codice cattivo.
Joomla andrebbe aggiornato più spesso, verissimo, ma la decisione non è mia bensì del proprietario del sito.
I file modificati sono questi, una trentina, c'è anche il libraries/loader.php guarda se sono gli stessi tuoi:
Ciao!
Citazione
Name: /libraries/
Device: 22
Inode: 3605725206
File Permissions: 16877(original) - 0755(octal)
Link: 12
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8

Name: /plugins/system/gantry/overrides/3.0/2.5/mod_languages/
Device: 22
Inode: 3605088057
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /plugins/system/gantry/overrides/3.0/2.5/mod_random_image/
Device: 22
Inode: 3605088060
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /plugins/system/gantry/overrides/3.0/2.5/mod_random_image/default.php
Device: 22
Inode: 3564603042
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 685(byte) - 0.7(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /plugins/system/gantry/overrides/3.0/2.5/mod_languages/default.php
Device: 22
Inode: 3575311424
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 2093(byte) - 2.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /modules/mod_random_image/tmpl/
Device: 22
Inode: 3594931882
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /modules/mod_random_image/tmpl/default.php
Device: 22
Inode: 3529558089
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 685(byte) - 0.7(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /modules/mod_languages/tmpl/
Device: 22
Inode: 3604531818
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /modules/mod_languages/tmpl/default.php
Device: 22
Inode: 3604631078
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 2093(byte) - 2.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /libraries/loader.php
Device: 22
Inode: 3605725196
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 10330(byte) - 10.1(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 24


Name: /libraries/tcpdf/cache/
Device: 22
Inode: 3577102740
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/29 05:06:52
Last change inode: 2018/06/29 05:06:52
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /libraries/joomla/application/
Device: 22
Inode: 3586091417
File Permissions: 16877(original) - 0755(octal)
Link: 7
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /libraries/joomla/form/fields/
Device: 22
Inode: 3587704852
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /libraries/joomla/form/fields/plugins.php
Device: 22
Inode: 3546451772
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 2230(byte) - 2.2(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /libraries/joomla/application/input.php
Device: 22
Inode: 3536272530
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 6722(byte) - 6.6(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 16


Name: /components/com_users/controllers/
Device: 22
Inode: 3604952513
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:54
Last change inode: 2018/06/28 23:06:54
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /components/com_users/models/
Device: 22
Inode: 3604952515
File Permissions: 16877(original) - 0755(octal)
Link: 3
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /components/com_users/models/forms/
Device: 22
Inode: 3604952518
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /components/com_users/models/login.php
Device: 22
Inode: 3517963500
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 3360(byte) - 3.3(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /components/com_users/models/forms/frontend.xml
Device: 22
Inode: 3528224994
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 927(byte) - 0.9(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /components/com_users/controllers/user.php
Device: 22
Inode: 3530686532
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 6577(byte) - 6.4(Kbyte)
Last Modified: 2018/06/28 23:06:54
Last change inode: 2018/06/28 23:06:54
Block size for I/O di filesystem: 65536
Number of blocks allocated: 16


Name: /cache/Gantry/
Device: 22
Inode: 3598459396
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/29 09:06:27
Last change inode: 2018/06/29 09:06:27
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /cache/Gantry/21e7de08fa893b8cbffd64a06fe51b36-cache-Gantry-2a2f4f1ce7e9b3ccf8aaf719e7f9ec0d.php
Device: 22
Inode: 3598459400
File Permissions: 33188(original) - 0644(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 62(byte) - 0.1(Kbyte)
Last Modified: 2018/06/29 09:06:26
Last change inode: 2018/06/29 09:06:26
Block size for I/O di filesystem: 65536
Number of blocks allocated: 0


Name: /cache/Gantry/21e7de08fa893b8cbffd64a06fe51b36-cache-Gantry-a817f26365f8b0aa9d8d9851ae6a3688.php
Device: 22
Inode: 3598459401
File Permissions: 33188(original) - 0644(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 62(byte) - 0.1(Kbyte)
Last Modified: 2018/06/29 09:06:26
Last change inode: 2018/06/29 09:06:26
Block size for I/O di filesystem: 65536
Number of blocks allocated: 0


Name: /cache/Gantry/21e7de08fa893b8cbffd64a06fe51b36-cache-Gantry-31d1aa82b765063c3c15c6e9a4c59d53.php
Device: 22
Inode: 3598459403
File Permissions: 33188(original) - 0644(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 11182(byte) - 10.9(Kbyte)
Last Modified: 2018/06/29 09:06:27
Last change inode: 2018/06/29 09:06:27
Block size for I/O di filesystem: 65536
Number of blocks allocated: 24


Name: /cache/Gantry/21e7de08fa893b8cbffd64a06fe51b36-cache-Gantry-32b97596c9de7e9f12bc57fde00328ef.php
Device: 22
Inode: 3598459402
File Permissions: 33188(original) - 0644(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 209909(byte) - 205.0(Kbyte)
Last Modified: 2018/06/29 09:06:26
Last change inode: 2018/06/29 09:06:26
Block size for I/O di filesystem: 65536
Number of blocks allocated: 424


Name: /administrator/components/com_login/models/
Device: 22
Inode: 3595026050
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:54
Last change inode: 2018/06/28 23:06:54
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /administrator/components/com_login/models/login.php
Device: 22
Inode: 3529872972
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4176(byte) - 4.1(Kbyte)
Last Modified: 2018/06/28 23:06:54
Last change inode: 2018/06/28 23:06:54
Block size for I/O di filesystem: 65536
Number of blocks allocated: 16


Name: /administrator/components/com_admin/models/forms/
Device: 22
Inode: 3589144260
File Permissions: 16877(original) - 0755(octal)
Link: 2
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 4096(byte) - 4.0(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


Name: /administrator/components/com_admin/models/forms/profile.xml
Device: 22
Inode: 3551093971
File Permissions: 33261(original) - 0755(octal)
Link: 1
ID owner: - 
ID group: 100 
Device type if inode device: 0
Size: 3470(byte) - 3.4(Kbyte)
Last Modified: 2018/06/28 23:06:38
Last change inode: 2018/06/28 23:06:38
Block size for I/O di filesystem: 65536
Number of blocks allocated: 8


--- SCAN DATABASE TABLES total: 176 ---
News or Changed tables after: 2018-6-28 13:21:2 ; number: 3
---
Name: x0yce_content
Engine: MyISAM
Version: 10
Row_format: Dynamic
Rows: 7
Avg_row_length: 1697
Data_length: 11884(byte) =  0.011(Mbyte)
Max_data_length: 281474976710655
Index_length: 10240
Data_free: 0
Auto_increment: 8
Create_time: 2017-03-02 23:32:59
Update_time: 2018-06-29 09:50:02
Check_time: 2017-03-23 19:22:26
Collation: utf8_general_ci
Checksum:
Create_options:
Comment:
---
Name: x0yce_domus_properties
Engine: MyISAM
Version: 10
Row_format: Dynamic
Rows: 28
Avg_row_length: 1005
Data_length: 28156(byte) =  0.027(Mbyte)
Max_data_length: 281474976710655
Index_length: 9216
Data_free: 0
Auto_increment: 67
Create_time: 2017-03-02 23:32:59
Update_time: 2018-06-29 09:07:17
Check_time: 2017-03-23 19:22:26
Collation: utf8_general_ci
Checksum:
Create_options:
Comment:
---
Name: x0yce_session
Engine: MyISAM
Version: 10
Row_format: Dynamic
Rows: 3
Avg_row_length: 977
Data_length: 299380(byte) =  0.286(Mbyte)
Max_data_length: 281474976710655
Index_length: 21504
Data_free: 296448
Auto_increment:
Create_time: 2017-03-02 23:33:30
Update_time: 2018-06-29 09:50:03
Check_time: 2017-03-23 19:22:26
Collation: utf8_general_ci
Checksum:
Create_options:
Comment:
 
« Ultima modifica: 29 Giu 2018, 18:20:56 da Alex21 »

 



Web Design Bolzano Kreatif