I've updated from Moodle 4.1.2+ and all seems to go well, all plugins are installed and up to date, no warnings but once installed my browser opens a blank page and when I say blank I mean empty, no source code etc. There is no way to log in to the Admin tools and no error on the server pages. If I try loading a page after logging in (which works) age I see nothing in the resulting page source code view, no HTML/CSS code of any kind.
I've manually cleared out the cache, local cache and temp in the Moodle Data directory.
Any ideas, all are welcome.
Thanks
Thanks for the reply: I did what I normally do, backed up everything, cloned the site as it is, and made sure it was working. I then delete the entire contents of the http folder and replace it with updated files and a copy of the config.
It went through all the normal checks for server status and plugin updates which it passed and then once I get the complete and reload page I get the blank/empty pages
I'll try the other methods you mention today and post my results
Thanks
David
No results on the page when I add what you suggest. They stay blank and code empty, not even a line of markup.
This is my config file - I might be blind to errors by now lol
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'XXXXXXXXXXXX';
$CFG->dbuser = 'XXXXXXXXXXXX';
$CFG->dbpass = 'XXXXXXXXXXXX;
$CFG->prefix = '';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => 3308,
'dbsocket' => '',
'dbcollation' => 'utf8mb4_general_ci',
);
$CFG->wwwroot = 'https://klmuktraining.com/online2';
$CFG->dataroot = '/var/www/vhosts/klmuktraining.com/moodledata-live';
$CFG->admin = 'admin';
$CFG->directorypermissions = 02777;
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
Thanks
David
I'll create my own thread however, just sharing my build to see if comparisons are visible.
Stand alone server running Debian 11 with Moodle 4.1.4+
I do the Debian 12 upgrade first. Reboot.
Moodle works fine, with the exception that Moodle tells me that PHP 8 is not supported for 4.1.X
Put the server into maintenance mode and then start the upgrade to 4.3 with copying config file, all plugins, and themes. Once I refresh the page to start the upgrade process, I got php code displayed. I then checked to see if PHP 8 was enabled, which it was not. I enable PHP8, refresh my browser and the page goes white and I cannot get to any part of the admin side of things.
Running php checks.php
root@archmood:/var/www/MoodleDev/admin/cli# php checks.php
PHP Deprecated: Creation of dynamic property cache_config::$configlockmappings is deprecated in /var/www/MoodleDev/cache/classes/config.php on line 146
CRITICAL: Environment (core_environment)
Status | Check
----------+--------------------------------------------------------------------
ERROR | Environment (core_environment)
| You must solve all the environmental problems (errors) found
| above before proceeding to install this Moodle version!
CRITICAL | Cron running (tool_task_cronrunning)
| The admin/cli/cron.php script has not been run for 1 year
| 223 days and should run every 1 min.
ERROR | Ad hoc task queue (tool_task_adhocqueue)
| Oldest task is 1 year 147 days which is more than 4 hours
Yes you are right the main site is WP however I'm not certain that's creating the issue as we've run it on this server for about 18 months now, moodle 3 version finally upgraded to 4.1 with no issues but I take your point, and will check further.
No prefixes on the tables, the WP and Moodle DBs are separate and I will run the collation script, ty.
I have full server access via Plesk and see no errors in the log which I would expect if access was the issue.
I will check the Plesk settings but it seems strange it's affecting this from 4.1.2+ that's running in the dir 'https://klmuktraining.com/online' and I cloned this with it running perfectly before upgrading to 4.3.1+
I appreciate the response I won't have much time to work on this till the weekend but will go through this thread and feedback.
Thanks
David
Thanks
$CFG->directorypermissions = 02777;
in config.php
add the following lines for debugging info:
@ini_set('display_errors', '1');
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;
//=========================================================================
// 5. ADMIN DIRECTORY LOCATION (deprecated)
//=========================================================================
// Please note: Support from this feature has been deprecated and it will be
// removed after Moodle 4.2.
// A very few webhosts use /admin as a special URL for you to access a
// control panel or something. Unfortunately this conflicts with the
// standard location for the Moodle admin pages. You can work around this
// by renaming the admin directory in your installation, and putting that
// new name here. eg "moodleadmin". This should fix all admin links in Moodle.
// After any change you need to visit your new admin directory
// and purge all caches.
Thanks for your reply: Currently running 8.0.30. I have the live site running from a different folder on the same server which is running Moodle 4.1.2+ so not a massive jump.
On the test instance, it lets me log in, and then totally empty/blank pages are served.
Thanks
David
and dont worry about deleting, its a safe process, as soon as you reload, these folders will be created once again.
Thanks for the reply: I did clear out the cache etc in the moodle files dir as well as session data and tmp files but no joy. Also runs the cron perfectly which I have done several times with no joy.
Thanks
David
We are using Classic for the theme and its working fine in 4.1.2+ instance on https://klmuktraining.com/online2''https://klmuktraining.com/online2. Yes the permissions are correct on the folders. It's going to be something silly I feel.
Appreciate the help
David
Thanks all for the support and quick responces
David