Jump to content

Blank screen after installation


BR2 Studio
 Share

Recommended Posts

Hi Everyone,

I made a site on localhost and after migrating I get blank screen on frontend and backend too. Tried with a fresh copy too and after installing it I got the same problem. During installation everything looks great.

- Debug mode is true

- Tried in subfolder and then in root too.

- There are no messages in error log.

- Sessions are created in site/assets/sessions/ -> I think it's not a permission related problem and processwire could be initialized

- .htaccess is working

Any hints what could be the problem? I've worked with several ProcessWire sites and I had no this issue before, but it's the first time installing on windows server with apache.

Link to comment
Share on other sites

   

but it's the first time installing on windows server.

Sorry you are having problems.  Here are a couple of weblinks that you should check out:  

http://windows.php.net/

http://php.iis.net/

http://php.net/manual/en/install.windows.php

http://www.microsoft.com/web/platform/phponwindows.aspx

https://processwire.com/talk/topic/268-processwire-on-windows72008-server-with-iis-webserver/

https://processwire.com/talk/topic/766-isapi-rewrite-3-on-iis/

Edited by cstevensjr
Added website dedicated to running PHP on Windows
  • Like 1
Link to comment
Share on other sites

If it's server configuration problem I think not an obvious one. We could run other systems like Concrete5 and Statamic properly on this system. But I couldn't find out what could be the problem. There is no error message, nothing more just blank pages.

Link to comment
Share on other sites

blank pages, - but with what HTTP response code?

Which profile has you installed?

I'm running PW on windows with apache2, too. No problems here.

Where do you have the .htaccess file placed when running PW from root? Is it combined with other rules, or is it only the PW distributed one?

  • Like 1
Link to comment
Share on other sites

1. It returns with 200 response code, so everything is fine there.

2. First time when I migrated from an another host I created with Blank profile. Then I tried to install a fresh copy of the latest PW with Classic profile. Each site had same issue. I tried to install in a subfolder and then in the root too. .htaccess was not combined.

If I print a $config variable or a $pages variable in index.php(!) it works well, but templates and nothing else is loaded. For example the $page variable doesn't even exist. I think the problem is not with the Rewrite, because the variables mentioned above are printed on every url. So routing works well.

When I add wrong database details, errors messages are shown correctly, so the site is connected to the database. (+ I can print for example $pages->get(1)->title in index.php)

The site I try to migrate works everywhere excluding this server.

I have never seen this problem before. I've already built several sites with PW. And it's really strange, no error messages. just plain pages. It looks nothing else is loaded after index.php and config.php.

Link to comment
Share on other sites

One more thing. When I run the following code:

$rootPath = dirname(__FILE__);
echo "RootPath:".$rootPath."</br>";
if(DIRECTORY_SEPARATOR != '/') $rootPath = str_replace(DIRECTORY_SEPARATOR, '/', $rootPath);
echo "NewRootPath:".$rootPath."</br>";
echo "HTTP_HOST:".$_SERVER['HTTP_HOST']."<br/>";
echo "DOCUMENT_ROOT:".$_SERVER['DOCUMENT_ROOT']."<br/>";
$rootURL = isset($_SERVER['HTTP_HOST']) ? substr($rootPath, strlen(rtrim($_SERVER['DOCUMENT_ROOT'], '/'))) . '/' : '/';
echo "RootURL:".$rootURL;

I got the following result:

RootPath:e:\sitename.hu
NewRootPath:e:/sitename.hu
HTTP_HOST:www.sitename.hu
DOCUMENT_ROOT:C:/webserver/html/sitename.hu
RootURL:/

Can't windows backslashes cause a problem like this?

I asked the php and apache error log from system administrator.

Link to comment
Share on other sites

It is solved. The problem was the different RootPath and DOCUMENT_ROOT. I can't exactly say why it happened because we have just reported the different paths to the server administrator. But now everything works well.

Thanks to everyone for tips.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Similar Content

    • By JeevanisM
      Hi,
      I have installed 1 year old project backup into the new latest PW version. I used an earlier backup(taken in August 2020) and installed such as :
      1. I downloaded the latest (ProcessWire 3.0.185 dev © 2021) then extracted into htdocs 2. copy pasted the site-profile from my backup. (this has the files/folders same as other site profiles, classic, beginner etc) 3. I chose my backup site profile and installed 4. I am able to login the admin panel  5. My fronted home page shows error as below  Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'page_path_history.language_id' in 'field list' (in wire/modules/PagePathHistory.module line 752) #0 wire/modules/PagePathHistory.module (752): PDOStatement->execute() #1 wire/core/PagesPathFinder.php (1014): PagePathHistory->getPathInfo('/', Array) #2 wire/core/PagesPathFinder.php (222): PagesPathFinder->getPathHistory('/') #3 wire/core/PagesRequest.php (255): PagesPathFinder->get('/', Array) #4 wire/core/Wire.php (414): PagesRequest->___getPage() #5 wire/core/WireHooks.php (951): Wire->_callMethod('___getPage', Array) #6 wire/core/Wire.php (485): WireHooks->runHooks(Object(PagesRequest), 'getPage', Array) #7 wire/modules/Process/ProcessPageView.module (10 This error message was shown because: you are logged in as a Superuser. Error has been logged.
       
      so I removed the line where its selecting language_id from the file wire/modules/PagePathHistory.module line 752
      But this is an ugly fix, so is there any other proper fix for this issue ? Does any one experience same issue when trying to install from a backup site profile ? 

       

       
       thanks
       
    • By ErikMH
      I’m new to Processwire. I’ve installed the current release version at my very-long-time (25 years) host, pair Networks. MySQL db is created. Installation process completed with no errors.
      I’m now trying to log in. Rather than taking the default `/admin` suggestion, I chose `/xyzzy`. When I go to `example.com/xyzzy`, PW displays a login screen, as expected. I enter the username (`xyzzy`) and password that I assigned (and copied and stored in 1Password) in the installation process (five words separated by hyphens). So far, so good.
      I would expect then to be taken to the admin pages. Or (if I got something wrong) to be given an error message. Instead, I’m taken to the URL `example.com/xyzzy/page/?login=1`, which as far as I can tell is exactly the same as the initial login page. No error is given.
      I grew so frustrated by this, that I deleted the entire installation and the MySQL database, re-downloaded PW, installed it again using a different username and password for the admin account.
      And I’m seeing exactly the same behavior. Time for me to ask you experts: WTF?
      Many thanks for any insights you may have....
       
    • By Grigorij Schleifer
      Hello processwire community, I am a total CMS beginner and I am trying to install processwire on my mac.
      I have downloaded processwire using git and loaded the location, where the files where downloaded into chrome, safary or opened the location from the terminal. No installation guide startet. I just typed the directory location into the browsers url address bar and could see all the files that were downloaded. When I tried to open installl.php file, my browser just showed me the code.
      I think I am missing something trivial. Do I need to install a specific PHP version and MySQL first? Or do I need to set up an Apache server first. 
      I am very thankful for every suggestion/help I can get.
      Thank you
    • By Nik Groningen
      Hi,
      Currently I'm developing a platform and use Processwire for some of the backend. Everything is working very well on localhost, but the installation on namecheap does not complete. I've read some comments on this forum that mentioned hosting on namecheap (without mentioning issues). 
      Attached is a screenshot of the last step of the installation. It looks very similar to the problem mentioned in this thread: https://processwire.com/talk/topic/15516-processwire-do-not-complete-installation/. Unfortunately, this didn't help me. I also attached a picture of the server. In the error_log, i do get some error messages related to includes and requires like:
      [18-Jun-2020 03:42:32 America/New_York] PHP Fatal error:  require(): Failed opening required '/home/niklcicr/public_html/wire/config.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/niklcicr/public_html/wire/core/ProcessWire.php on line 1199
      On the last screen, the console outputs a internal server error 500.
      That's what I tried: Installation on another server (freeinfinity) and it worked fine, installation on another namecheap account (did not work), and I adjusted the .htaccess file according to other threads in this forum that had similar problems (did not work).
      Is there anyone who got Processwire to work on namecheap hosting or can point me in the right direction? 
      Thanks in advance,
      Nik


    • By alanxptm
      Hi, I have already tried in different ways and many times to migrate but I always have issues at the end.
      Here's what I have done so far:
       
      case 1:
      1. Install PW on live server (all normal)
      2. Import local DB into live DB
      3. Front page site seems to work but I cannot login into admin page
      case 2 (I'm currently on this stage):
      1. Copied all files from local to live server
      2. Import local DB into live empty DB
      3. Front page works, but any other page and admin page are 404
       
      In both cases:
      - I have changed config.php info accordingly to live server (DB name, DB user and pwd, userauthsalt code)
      - Uncommented RewriteBase / and RewriteBase /pw/ lines on .htaccess
      - applied owner and group permissions to www-data for PW location
      - applied permissions to folders and files accordingly
      - applied a2enmod rewrite to apache2 on live server and restarted service
       
      I have read some posts (Ryan's too) about migration and it seems to me that I'm doing it fine, don't know what it fails-
      I'm on VMWare machine, Ubuntu Server 18.04, php 7.2, phpMyAdmin 5.0.1
      Hope you can help me, thanks in advance
×
×
  • Create New...