I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Anthony Bwengye發表於
Number of replies: 14

image.png

評比平均分數: -
In reply to Anthony Bwengye

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
Which web server are you using? If it's nginx then make sure you have read and followed Nginx.

If it's Apache, then check Using_slash_arguments

If neither of those help, we're going to need full details of your installation, how you installed Moodle, what instructions you followed and so on...
In reply to Howard Miller

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Anthony Bwengye發表於
Thank you for quick response. I am using Apache.
In reply to Anthony Bwengye

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
Right... so...?
In reply to Howard Miller

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Bex Groebner發表於

Hi, 
I am having this exact same issue. 

Web Server: I’m using Apache on a shared hosting plan with IONOS.

Installation Process: I manually installed Moodle 4.4.3+ by uploading the files via FileZilla to the root directory of my hosting account.

I’ve placed Moodle in a subdirectory (/learn).

I followed the standard installation instructions for Moodle 4.4.3+, including creating a MariaDB database and setting up the config.php file with the database details.

PHP Version: I’m running PHP 8.2.23. All necessary extensions are enabled, and the PHP memory limit is set to -1. 

After logging in, I’m seeing a white screen with basic blue links along the left side, which looks like a CSS/JavaScript loading issue (same as the photo here).

My permissions were initially set to 705, so I’m currently updating them to 755 for directories and 644 for files. This process is taking a long time via FileZilla.

I’ve purged the Moodle cache and verified that most necessary files are in place, but the theme and CSS files (Boost theme, Fordson theme) aren’t loading properly.

I haven’t made any changes to Apache configurations like slash arguments, but I saw that could be a possible issue. I’m not entirely sure how to check or modify that on my IONOS setup. Should I investigate that, and if so, how do I check if slash arguments are causing this?

In reply to Bex Groebner

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Rick Jerz發表於
Particularly helpful Moodlers的相片 Testers的相片
I wonder if your version of php is too high? Also, have you tried disabling slash arguments? (admin, server, HTTP.)
 
Have you checked to see that all required PHP extensions are installed on your server?
In reply to Bex Groebner

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

AL Rachels發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

I have three Moodle sites on IONOS and in the config.php file of each one to fix the missing CSS, I HAVE to have this line:

$CFG->yuislasharguments = 1;

Also, to get the following settings enabled, I have to follow the directions for adding a php.ini file in every Moodle folder at: https://docs.moodle.org/404/en/Apache

cgi.fix_pathinfo = 0
file_uploads = On
max_input_vars=10000
upload_max_filesize = 512M
post_max_size = 512M

As a further step, I have to have my, data, folder for each of the Moodle sites located in the site root folder.

In reply to AL Rachels

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

AL Rachels發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
Oops! Missed one. Also in the config.php file I have this: $CFG->slasharguments = true;
In reply to AL Rachels

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

AL Rachels發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
By the way, if you have problems setting up cron, I can maybe help with getting it to run every minute like it should. The Ionos Help for Cron setup will lead you to believe you can only run cron once a day. Contact me directly as it takes some information about your Ionos account that should NOT be shown here.

Get via Moodle message system or via Skype, daniel.rachels
In reply to AL Rachels

Re: I have successfully installed Moodle 4.4 on IONOS server but it is not displaying normally

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片

This sub-thread, starting https://moodle.org/mod/forum/discuss.php?d=461960#p1855870, is not about a local machine but on IONOS. I changed the title in case the sub-discussion is split. As others have pointed out the cause must be IONOS.

The original post https://moodle.org/mod/forum/discuss.php?d=461960 is probably orphaned. The OP hasn't returned after posting the problem. But the thread is tempting to all who see Moodle not displaying normally after a fresh install. 眨眼

In reply to Bex Groebner

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Marcus Green發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
How long have you had the IONOS account and how much are you paying for it?
In reply to Marcus Green

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
Finally, we have a true manager who talks in $$. Maybe you mean a digital currency? The analog units, Watt, Joule, etc. are not making any progress.
眨眼
In reply to Anthony Bwengye

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Eduardo Kraus發表於
Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hello, Anthony Bwengye! 😊

From what you mentioned and based on the image, it seems like the CSS is not loading, and that can definitely affect the entire look of the page.

Let’s take it step by step to resolve this smoothly and effectively, okay?

Step 1: Check the Developer Console

In Google Chrome, open the developer tools. Now, navigate to the "Console" tab and check if there are any errors related to CSS. It will likely show something like "Failed to load CSS file" or "404 not found." This will give us a clue as to where the problem might be.

Step 2: Check the "Network" Tab

Still in the developer tools, click on the "Network" tab and reload the Moodle page. Keep an eye on the files that the browser is trying to load. If there’s an issue with the CSS, you’ll see errors highlighted in red or the word "failed" next to the stylesheet file.

Step 3: Config

Check if the config.php file in your Moodle installation is set up correctly, especially the line that defines wwwroot. Make sure the URL in $CFG->wwwroot matches what appears in the browser. Often, the browser will be using HTTPS, but in the config file, it’s set to HTTP.

If you're using a server like Apache, ensure that the mod_rewrite module is enabled and functioning properly, as this can interfere with file loading.

Eduardo Kraus
Teacher / Developer / Passionate about Moodle / Innovation and new products

In reply to Eduardo Kraus

Re: I have successfully installed moodle 4.4 on my local server but it is not displaying normally. Is it a CSS issue?

Luis de Vasconcelos發表於
Particularly helpful Moodlers的相片
And check the Moodledata folder permissions too. Apache must have CRUD access to all of Moodledata.