Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

White Page after Deploy #41

Open
InnoExcell opened this issue Jul 9, 2021 · 21 comments
Open

White Page after Deploy #41

InnoExcell opened this issue Jul 9, 2021 · 21 comments

Comments

@InnoExcell
Copy link

Hi, thanks for the whole work going on here.
I deployed wordpress to my heroku account following the guide here.
However, anytime I access the site, I get a white blank page.
The same applies to the wp-admin page. It seems I am missing something out...

How do I resolve this issue?
Many thanks.

@javadev
Copy link
Member

javadev commented Jul 9, 2021

Hi @InnoExcell

Please attach log file with errors.

@InnoExcell
Copy link
Author

InnoExcell commented Jul 9, 2021

Sorry, but how do I obtain the log files?

Here is a link to the site: http://calm-plateau-85060.herokuapp.com/wp-admin/

@javadev
Copy link
Member

javadev commented Jul 9, 2021

View logs menu in heroku.

IMG_20210709_050218

@InnoExcell
Copy link
Author

Got it, sir. Thanks.
calm-plateau-85060-logs-1625796279322.txt

@javadev
Copy link
Member

javadev commented Jul 9, 2021

It looks like postgres database is not present.

thrown in /app/wp-content/pg4wp/driver_pgsql.php on line 686

Please check addon

IMG_20210709_050937

@InnoExcell
Copy link
Author

It is actually present.
postgres addon present

@InnoExcell
Copy link
Author

Does this offer any additional insight?
line 686

@javadev
Copy link
Member

javadev commented Jul 9, 2021

I reproduced this error locally. Will investigate it.

IMG_20210709_052609

@InnoExcell
Copy link
Author

All right, many thanks for your timely response and help.

@InnoExcell
Copy link
Author

BTW, is the idea of using Postgres with Wordpress a bad one?
please check out the comment here
Thanks again.

@javadev
Copy link
Member

javadev commented Jul 9, 2021

This is because of Postgres 13. I checked with version 11. It works.

@InnoExcell
Copy link
Author

Many thanks @javadev
How do I downgrade the app to version 11?

@javadev
Copy link
Member

javadev commented Jul 9, 2021

It will be better to add compatibility with version 13.

@InnoExcell
Copy link
Author

oh, got it.
Who is responsible for adding compatibility, sir?
(Pardon my questions pls, I'm but a novice).

@javadev
Copy link
Member

javadev commented Jul 9, 2021

The error message is

[09-Jul-2021 09:07:19 UTC] PHP Warning:  pg_query(): Query failed: ERROR:  relation "wp_options" does not exist
2021-07-09T09:07:19.488283+00:00 app[web.1]: LINE 1: SELECT option_name, option_value FROM wp_options WHERE autol...
2021-07-09T09:07:19.488497+00:00 app[web.1]:                                               ^ in /app/wp-content/pg4wp/driver_pgsql.php on line 137
2021-07-09T09:07:19.488934+00:00 app[web.1]: [09-Jul-2021 09:07:19 UTC] PHP Fatal error:  Uncaught TypeError: pg_result_status(): Argument #1 ($result) must be of type resource, bool given in /app/wp-content/pg4wp/driver_pgsql.php:686

@javadev
Copy link
Member

javadev commented Jul 9, 2021

It looks like create table is not working for postgres 13.

CREATE TABLE $wpdb->options (
	option_id bigint(20) unsigned NOT NULL auto_increment,
	option_name varchar(191) NOT NULL default '',
	option_value longtext NOT NULL,
	autoload varchar(20) NOT NULL default 'yes',
	PRIMARY KEY  (option_id),
	UNIQUE KEY option_name (option_name),
	KEY autoload (autoload)
) $charset_collate;

@InnoExcell
Copy link
Author

I see. Please, how do I deploy this same wordpress to heroku, using Postgres version 11 instead of 13?

@javadev
Copy link
Member

javadev commented Jul 9, 2021

I will try to fix php code to make it working with postgres 13.

@InnoExcell
Copy link
Author

OH, that will be great.
Thanks in anticipation.

@akashkj
Copy link

akashkj commented Sep 30, 2021

Hi,
Was there any progress on this?

@javadev
Copy link
Member

javadev commented Sep 30, 2021

Not yet. The problem is known: incompatibility with postgres 13.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants