Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : phidias81 12 Mar 2013, 13:42:48

: Cosa è function.unserialize? Dice la soluzione ma non la capisco
: phidias81 12 Mar 2013, 13:42:48
Ciao a tutti, a volte compare un errore mentre navigo nel mio sito http://www.nomadtravellers.com/ sembra semplice, perchè dà anche la soluzione, ma non so come risolvere.


:
Notice: unserialize() [function.unserialize]: Error at offset 679356 of 679897 bytes in /home/nomadtra/public_html/libraries/joomla/cache/controller.php on line 195
Alla linea 195 dice:

   
:
{
            $data = unserialize(trim($data)); // trim to fix unserialize errors
        }

Ho provato a cancellare la linea o a mettere // davanti, ma in entrambi i casi diventa anche peggio con una serie di errori che non mi fanno caricare il sito affatto.

Ho visto che google mi ha anche indicizzato 2 pagine con questo errore!

Qualche suggerimento?
: Re:Cosa è function.unserialize? Dice la soluzione ma non la capisco
: maicolstaip 12 Mar 2013, 18:41:12
Ciao phidias81,
se hai accesso al php.ini prova a cambiare
error_reporting = E_ALL
in
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING

Ciao!


: Re:Cosa è function.unserialize? Dice la soluzione ma non la capisco
: phidias81 12 Mar 2013, 19:04:48
Non so adesso chiedo al mio host (l'ho cambiato 2 giorni fa).
Ma questa modifica immagino non mostrerebbe l'errore, però non risolverebbe il problema? Perchè preferei risolverlo piuttosto che nasconderlo.
Nelle impostazioni di Joomla avevo anche error reporting al massimo, adesso l'ho messo a nulla per il momento
: Re:Cosa è function.unserialize? Dice la soluzione ma non la capisco
: phidias81 12 Mar 2013, 21:05:29
Mi hanno detto che posso avere il php.ini nella cartella public_html, quindi ho aggiunto questa linea al file

:
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
Però come dicevo mi piacerebbe sapere se risolvo il problema o lo nascondo solamente! (sempre meglio di niente :)
: Re:Cosa è function.unserialize? Dice la soluzione ma non la capisco
: mau_develop 12 Mar 2013, 21:13:54
che joomla è?

...ho visto.... prova a svuotare la cache
: Re:Cosa è function.unserialize? Dice la soluzione ma non la capisco
: phidias81 12 Mar 2013, 21:59:52
che joomla è?

...ho visto.... prova a svuotare la cache

2.5.9

Svuotare la cache non risolve o almeno non permanentemente, perchè la svuoto regolarmente ed ogni tanto l'errore ritona
: Re:Cosa è function.unserialize? Dice la soluzione ma non la capisco
: mau_develop 12 Mar 2013, 22:11:38
hai controllato utenti e gruppi?

si pianta sull'unserialize ma non è un problema di unserialize ... $data sono l'id e il gruppo dell'utente nella cache... dovrebbe accadere solo se autenticato
: Re:Cosa è function.unserialize? Dice la soluzione ma non la capisco
: mau_develop 12 Mar 2013, 22:16:23
ma come è impostata la cache? su file.. su db.. durata....
: Re:Cosa è function.unserialize? Dice la soluzione ma non la capisco
: phidias81 12 Mar 2013, 22:35:09
Gli utenti non credo, non li tocco da mesi, ed anche c'è solo il superuser (io) + un manager (la mia ragazza)

Ho la cache di joomla=progressive caching
cache handler= file (è l'unico disponibile in realtà)
cache time=15

Il plugin System-Cache nativo di Joomla è disabilitato

Ho un plugin Cache Control, che mi disabilita la cache solo su di una pagina

poi ho una serie di cose nel file htaccess, non so se possano avere una relazione

:
##
# @package        Joomla
# @copyright    Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license        GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
RewriteCond %{HTTP_HOST} ^nomadtravellers.com$ [NC]
RewriteRule ^(.*)$ http://www.nomadtravellers.com/$1 [R=301,L]
#
# Add your other rewrite rules after this line

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)index\.html?$ http://www.nomadtravellers.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(([^/]+/)*)index\.php$ http%2://www.nomadtravellers.com/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} !^(www\.nomadtravellers\.com)?$
RewriteRule (.*) http://www.nomadtravellers.com/$1 [R=301,L]

# Redirect relocated directories to the new directories
RewriteRule ^content-menu-hidden/(.*) http://www.nomadtravellers.com/content/$1 [R=301,L]
RewriteRule ^content/77-travel/(.*) http://www.nomadtravellers.com/content/77-nomad-travel/$1 [R=301,L]
RewriteRule ^photo-albums/photo-albums-2/(.*) http://www.nomadtravellers.com/photo-albums/photo-albums-by-map/$1 [R=301,L]
Redirect 301 /blog/121-northern-lights-in-a-fjord-of-the-norwegian-coast http://www.nomadtravellers.com/blog/121-northern-lights-in-norway-aurora-borealis-fjord
Redirect 301 /content/77-nomad-travel/108-casino-constanta-an-unfinished-story http://www.nomadtravellers.com/content/77-nomad-travel/108-casino-constanta-frozen-black-sea
Redirect 301 /content/77-nomad-travel/111-mission-northern-lights-what-is-the-best-moment-to-see-aurora-borealis http://www.nomadtravellers.com/content/77-nomad-travel/111-northern-lights-what-is-the-best-moment-best-place-to-see-aurora-borealis

## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

AddDefaultCharset UTF-8

<IfModule mod_headers.c>
Header unset ETag
Header unset Last-Modified
</IfModule>
FileETag None
<FilesMatch "\.(ico|gz|JPG|jpg|jpeg|png|gif|js|css|swf)$">
Header unset Cache-control
Header set Expires "access plus 1 month"
</FilesMatch>