Upgrade problem


(Tom Chadwin) #1

Hello all


Just tried to upgrade from 3.28.0 to 3.28.1, following the instructions on the upgrade page. The installation appeared not to throw up any errors. The /_admin page, however, has the following:


    Warning: fopen(/home/websites/mysource_matrix/data/private/logs/error.log) [function.fopen]: failed to open stream: Permission denied in /home/websites/mysource_matrix/core/include/general.inc on line 1188
    
    Warning: fwrite(): supplied argument is not a valid stream resource in /home/websites/mysource_matrix/core/include/general.inc on line 1189
    
    Warning: Unable to Write to log file /home/websites/mysource_matrix/data/private/logs/error.log [SYS0051] in /home/websites/mysource_matrix/core/include/locale_manager.inc on line 504
    
    PHP Warning  
    session_start() [function.session-start]: open([SYSTEM_ROOT]/cache/sess_a7d81fc88c9e2bb5fd6d39996f6c5878, O_RDWR) failed: Permission denied (13)  
    
    
    Warning: fopen(/home/websites/mysource_matrix/data/private/logs/error.log) [function.fopen]: failed to open stream: Permission denied in /home/websites/mysource_matrix/core/include/general.inc on line 1188
    
    Warning: fwrite(): supplied argument is not a valid stream resource in /home/websites/mysource_matrix/core/include/general.inc on line 1189
    
    Warning: Unable to Write to log file /home/websites/mysource_matrix/data/private/logs/error.log [SYS0051] in /home/websites/mysource_matrix/core/include/locale_manager.inc on line 504
    
    PHP Warning  
    session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at [SYSTEM_ROOT]/core/include/general.inc:1188)  
    
    
    Warning: fopen(/home/websites/mysource_matrix/data/private/logs/error.log) [function.fopen]: failed to open stream: Permission denied in /home/websites/mysource_matrix/core/include/general.inc on line 1188
    
    Warning: fwrite(): supplied argument is not a valid stream resource in /home/websites/mysource_matrix/core/include/general.inc on line 1189
    
    Warning: Unable to Write to log file /home/websites/mysource_matrix/data/private/logs/error.log [SYS0051] in /home/websites/mysource_matrix/core/include/locale_manager.inc on line 504
    
    PHP Warning  
    session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at [SYSTEM_ROOT]/core/include/general.inc:1188)  
    
    
    Warning: fopen(/home/websites/mysource_matrix/data/private/logs/error.log) [function.fopen]: failed to open stream: Permission denied in /home/websites/mysource_matrix/core/include/general.inc on line 1188
    
    Warning: fwrite(): supplied argument is not a valid stream resource in /home/websites/mysource_matrix/core/include/general.inc on line 1189
    
    Warning: Unable to Write to log file /home/websites/mysource_matrix/data/private/logs/error.log [SYS0051] in /home/websites/mysource_matrix/core/include/locale_manager.inc on line 504
    
    PHP Warning  
    Cannot modify header information - headers already sent by (output started at [SYSTEM_ROOT]/core/include/general.inc:1188)  
    
    
    Warning: fopen(/home/websites/mysource_matrix/data/private/logs/error.log) [function.fopen]: failed to open stream: Permission denied in /home/websites/mysource_matrix/core/include/general.inc on line 1188
    
    Warning: fwrite(): supplied argument is not a valid stream resource in /home/websites/mysource_matrix/core/include/general.inc on line 1189
    
    Warning: Unable to Write to log file /home/websites/mysource_matrix/data/private/logs/error.log [SYS0051] in /home/websites/mysource_matrix/core/include/locale_manager.inc on line 504
    
    PHP Warning  
    Cannot modify header information - headers already sent by (output started at [SYSTEM_ROOT]/core/include/general.inc:1188)  
    
    Notice: Undefined index: SQ_SYSTEM in /home/websites/mysource_matrix/core/include/general.inc on line 1141
    
    Notice: Trying to get property of non-object in /home/websites/mysource_matrix/core/include/general.inc on line 1141
    
    Warning: fopen(/home/websites/mysource_matrix/data/private/logs/error.log) [function.fopen]: failed to open stream: Permission denied in /home/websites/mysource_matrix/core/include/general.inc on line 1188
    
    Warning: fwrite(): supplied argument is not a valid stream resource in /home/websites/mysource_matrix/core/include/general.inc on line 1189
    
    Warning: Error occurred [SYS0051] Array ( [0] => /home/websites/mysource_matrix/data/private/logs/error.log ) in /home/websites/mysource_matrix/core/include/general.inc on line 1306
    
    PHP Warning  
    Unknown: open(/home/websites/mysource_matrix/cache/sess_a7d81fc88c9e2bb5fd6d39996f6c5878, O_RDWR) failed: Permission denied (13)  
    
    
    Notice: Undefined index: SQ_SYSTEM in /home/websites/mysource_matrix/core/include/general.inc on line 1141
    
    Notice: Trying to get property of non-object in /home/websites/mysource_matrix/core/include/general.inc on line 1141
    
    Warning: fopen(/home/websites/mysource_matrix/data/private/logs/error.log) [function.fopen]: failed to open stream: Permission denied in /home/websites/mysource_matrix/core/include/general.inc on line 1188
    
    Warning: fwrite(): supplied argument is not a valid stream resource in /home/websites/mysource_matrix/core/include/general.inc on line 1189
    
    Warning: Error occurred [SYS0051] Array ( [0] => /home/websites/mysource_matrix/data/private/logs/error.log ) in /home/websites/mysource_matrix/core/include/general.inc on line 1306
    
    PHP Warning  
    Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/websites/mysource_matrix/cache)  


Can anyone help?

Thanks

Tom

(Peter Sheppard) #2

[quote]
Just tried to upgrade from 3.28.0 to 3.28.1, following the instructions on the upgrade page. The installation appeared not to throw up any errors. The /_admin page, however, has the following:



Can anyone help?

[/quote]



Check the filesystem owner and permissions (particularly group write) for [SYSTEM_ROOT]/data/private/logs (if it even exists, you may have to recreate that folder.



Also check [SYSTEM_ROOT]/cache exists and is writeable.


(Tom Chadwin) #3

OK, this fixed it, I think:


chmod -R 755 /home/websites/mysource_matrix

cd /home/websites/mysource_matrix

chown -R www-data:www-data data cache

chmod -R g+w data cache



Maybe it might be worth updating the upgrade documentation.



Cheers



Tom