[SOLVED] Webpage empty
-
- Posts: 1
- Joined: Fri Jan 10, 2020 6:02 pm
[SOLVED] Webpage empty
Hello, I have installed the latest version but it shows a blank page.
there is nothing I can do, so help would be appreciated.
there is nothing I can do, so help would be appreciated.
Re: webpage empty
Have you considered that?
Works fine, also with PHP 7.3!
Minimum requirements to run WonderCMS
PHP version 7.2 or greater
Works fine, also with PHP 7.3!
Re: webpage empty
Hi GrandMaster, welcome to the community.
Mind sharing some of your server details?
1. Are you running Apache, NGINX or IIS?
2. Do you have any chance of enabling error logs? It currently seems you don't have them enabled, which would make debugging this easier.
3. Did you install WonderCMS through any other software or did you unzip and upload file directly to your host?
Mind sharing some of your server details?
1. Are you running Apache, NGINX or IIS?
2. Do you have any chance of enabling error logs? It currently seems you don't have them enabled, which would make debugging this easier.
3. Did you install WonderCMS through any other software or did you unzip and upload file directly to your host?
Re: webpage empty
I absolutely agree with HWU on this one, it's best to verify first and also while seeking support -> following the rules: viewtopic.php?f=45&t=1267 which makes it easier to debug what's missing.
Re: webpage empty
I have had the same issue and have verified that my system requirements are in place. Page is blank but here's the resulting source code as it tries to install...
<? global $Wcms ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><br />
<b>Notice</b>: Undefined variable: Wcms in <b>D:\xampp\htdocs\sites\wondercms\themes\default\theme.php</b> on line <b>10</b><br />
<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function get() on null in D:\xampp\htdocs\sites\wondercms\themes\default\theme.php:10
Stack trace:
#0 D:\xampp\htdocs\sites\wondercms\index.php(1113): require_once()
#1 D:\xampp\htdocs\sites\wondercms\index.php(167): Wcms->loadThemeAndFunctions()
#2 D:\xampp\htdocs\sites\wondercms\index.php(16): Wcms->render()
#3 {main}
thrown in <b>D:\xampp\htdocs\sites\wondercms\themes\default\theme.php</b> on line <b>10</b><br />
<? global $Wcms ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><br />
<b>Notice</b>: Undefined variable: Wcms in <b>D:\xampp\htdocs\sites\wondercms\themes\default\theme.php</b> on line <b>10</b><br />
<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function get() on null in D:\xampp\htdocs\sites\wondercms\themes\default\theme.php:10
Stack trace:
#0 D:\xampp\htdocs\sites\wondercms\index.php(1113): require_once()
#1 D:\xampp\htdocs\sites\wondercms\index.php(167): Wcms->loadThemeAndFunctions()
#2 D:\xampp\htdocs\sites\wondercms\index.php(16): Wcms->render()
#3 {main}
thrown in <b>D:\xampp\htdocs\sites\wondercms\themes\default\theme.php</b> on line <b>10</b><br />
Re: webpage empty
I have the same problem
New folder(777) and the 3.04 only
HTML
and the log
I've tested it with Apache and PHP 7.3 and 7.4
New folder(777) and the 3.04 only
HTML
Code: Select all
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
Code: Select all
2020-01-22 13:54:30 Error xxx 500 GET /cms/ HTTP/1.0 535 Apache-Zugriff
2020-01-22 13:54:30 Warning xxx mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function get() on null in /var/www/vhosts/
xxx/httpdocs/cms/themes/default/theme.php:10 Apache-Fehler
2020-01-22 13:54:30 Warning xxx mod_fcgid: stderr: Stack trace: Apache-Fehler
2020-01-22 13:54:30 Warning xxx mod_fcgid: stderr: #0 /var/www/vhosts/xxx/httpdocs/cms/index.php(1113): require_once() Apache-Fehler
2020-01-22 13:54:30 Warning xxx mod_fcgid: stderr: #1 /var/www/vhosts/xxx/httpdocs/cms/index.php(167): Wcms->loadThemeAndFunctions() Apache-Fehler
2020-01-22 13:54:30 Warning xxx mod_fcgid: stderr: #2 /var/www/vhosts/xxx/httpdocs/cms/index.php(16): Wcms->render() Apache-Fehler
2020-01-22 13:54:30 Warning xxx mod_fcgid: stderr: #3 {main} Apache-Fehler
2020-01-22 13:54:30 Warning xxx mod_fcgid: stderr: thrown in /var/www/vhosts/xxx/httpdocs/cms/themes/default/theme.php on line 10 Apache-Fehler
2020-01-22 13:54:34 Error xxx 500 GET /cms/ HTTP/1.0 535 Apache-Zugriff
2020-01-22 13:54:34 Warning xxx mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function get() on null in /var/www/vhosts/xxx/httpdocs/cms/themes/default/theme.php:10 Apache-Fehler
2020-01-22 13:54:34 Warning xxx mod_fcgid: stderr: Stack trace: Apache-Fehler
2020-01-22 13:54:34 Warning xxx mod_fcgid: stderr: #0 /var/www/vhosts/xxx/httpdocs/cms/index.php(1113): require_once() Apache-Fehler
2020-01-22 13:54:34 Warning xxx mod_fcgid: stderr: #1 /var/www/vhosts/xxx/httpdocs/cms/index.php(167): Wcms->loadThemeAndFunctions() Apache-Fehler
2020-01-22 13:54:34 Warning xxx mod_fcgid: stderr: #2 /var/www/vhosts/xxx/httpdocs/cms/index.php(16): Wcms->render() Apache-Fehler
2020-01-22 13:54:34 Warning xxx mod_fcgid: stderr: #3 {main} Apache-Fehler
2020-01-22 13:54:34 Warning xxx mod_fcgid: stderr: thrown in /var/www/vhosts/xxx/httpdocs/cms/themes/default/theme.php on line 1
Re: webpage empty
I have found the problem.
Download this theme
https://github.com/StephanStanisic/_empty
Delete the default themes use this one
Now I can see a very simple site with the login. Theme download and activated and it's work. But I can not use the default themes, empty website.
It's seems a big bug in the default Theme. I have tested more themes, the other seems ok. Ok not all tested. But many
Download this theme
https://github.com/StephanStanisic/_empty
Delete the default themes use this one
Now I can see a very simple site with the login. Theme download and activated and it's work. But I can not use the default themes, empty website.
It's seems a big bug in the default Theme. I have tested more themes, the other seems ok. Ok not all tested. But many
Re: webpage empty
@DirkP, thanks for pinpointing the issue. Shoot me a message with your first/last name + website so we can add it to the https://wondercms.com/special-contributors - contributors list.
I briefly checked what's the difference between the default theme and other themes: it's using a PHP short tag `<?` instead of the full `<?php`
Your servers seems to have the short tag disabled (and are usually enabled by default: https://stackoverflow.com/questions/218 ... short-tags)
I've pushed the fix for the default theme. Please login to your website and click "Check for updates" in the Settings panel, and an update for the default theme will be shown.
It make take a while for GitHub to clear the cached version file (if they haven't yet).
I briefly checked what's the difference between the default theme and other themes: it's using a PHP short tag `<?` instead of the full `<?php`
Your servers seems to have the short tag disabled (and are usually enabled by default: https://stackoverflow.com/questions/218 ... short-tags)
I've pushed the fix for the default theme. Please login to your website and click "Check for updates" in the Settings panel, and an update for the default theme will be shown.
It make take a while for GitHub to clear the cached version file (if they haven't yet).