philippheuer / wordpress-heroku Goto Github PK
View Code? Open in Web Editor NEWThis project is a template for installing and running WordPress 5.x on Heroku.
License: MIT License
This project is a template for installing and running WordPress 5.x on Heroku.
License: MIT License
Unable to get S3 uploads to work properly
Git Commit/Version:
Referenced in this issue: humanmade/S3-Uploads#205
Followed steps mentioned by @considine with no luck.
Also getting this error: humanmade/S3-Uploads#166 when attempting to create isam role.
-sb
When's 4.8 coming down the pike?
...
I see you're working on it in the develop branch, but wanted to know if you had a good idea for when that's coming down the pike.
Looks like the official WordPress milestone has 4.9 set to release in November, too.
Great job on this library, VERY helpful!!
...I need a simple 1,2,3 steps guide
every time i try to push from my local host I get these errors
remote: ! WARNING: Your app's PHP version is no longer actively maintained
remote: !
remote: ! Only security updates will be provided for your PHP version
remote: ! series by the PHP Group until its end-of-life on 2022-11-28.
remote: !
remote: ! It is strongly recommended you update your app to a version of
remote: ! PHP with "active support" status immediately to ensure you get
remote: ! the latest bugfixes and security updates each time you deploy.
remote: !
remote: ! You may check the list of versions supported by the PHP Group
remote: ! and their EOL dates here: http://php.net/supported-versions.php
remote: !
remote: ! For a list of supported runtimes & extensions on Heroku, please
remote: ! refer to: https://devcenter.heroku.com/articles/php-support
Git Commit/Version:
On wiki: https://github.com/PhilippHeuer/wordpress-heroku/wiki/WordPress---Plugins---Themes
There is a step missing on installing a plugin locally. The final step to update composer dependencies:
composer update
git push heroku <custom-branch>:master
Really loving this roots.io based boilerplate.
It's pretty much all in the title. Why use memcached (batcache) when the redis cache plugin is already in use. Redis is faster than memcached now anyways. I'm starting to think that maybe batcache can be configured to work with the Redis object cache or something? Seems a little confusing to me since it's advertised as a memcache plugin.
I don't understand why you've included Nginx Helper since it's primary concern is cache invalidation which heroku nginx doesn't even support. The stuff that it brings to the table for multisite rewrite is trivial to replicate, so why bother with it? Does it invalidate the same object cache that batcache is using?
None
Git Commit/Version:
current master
You are using parse_url
function to parse AWS_S3 options.
But it can't parse correctly some key included "\n".
For example, the following string can't parse_url correctly.
<?php
$env = "s3://hoge:hoge/[email protected]/backetName";
var_dump(parse_url($env));
?>
Git Commit/Version: 564770e
If you are a Heroku for teams user, this deploy fails on Heroku due to the following error:
error resizing dynos: Heroku Teams only support hobby and professional dynos.
Git Commit/Version: I just pressed "Deploy to Heroku"
When pressing on "Deploy to Heroku" button, the process fails on the step of Configure environment with the message of:
"There was an issue setting up your app environment.
An error was encountered when contacting the add-on partner to create sendgrid:starter. Please try again later."
I got this message also when I try to attach the sendgrid add-on to another heroku app so I know this problem has nothing about you, but maybe you are familiar with this issue.
Thanks.
please describe how start local development with this template, for push to heroku later
I get this when I navigate to wp-admin on my local: Invalid request (Unsupported SSL request)
. It looks like it keeps forcing localhost to use https://localhost:3000
when it's hosted on http:// but I don't believe it's my local SSL config because it works for other environments.
Any thoughts?
Regular install process for development on local machine
Instead of being show the 'famous 5 minute install' page upon first running a new WP site locally from a clone of this project, I am getting a blank screen in my browser and no error messages.
charles@debueger06-ubuntu:~/HLML$ php wp-cli.phar server --host=127.0.0.1 --port=3000
PHP 7.0.27-1+ubuntu16.04.1+deb.sury.org+1 Development Server started at Sat Jan 27 22:09:36 2018
Listening on http://127.0.0.1:3000
Document root is /home/charles/HLML/web/wp
Press Ctrl-C to quit.
[Sat Jan 27 22:09:44 2018] 127.0.0.1:51588 [200]: /
php wp-cli.phar server --host=127.0.0.1 --port=3000
http://localhost:3000/bogus
) also results in a blank screen in the browser - and no error message in the console. However, I can see a 404 in my browser network log.http://localhost:3000/wp-admin
results in a redirect to the HTTPS version of the site, a "Secure Connection Failed" error in the browser and in my shell console I see[Sat Jan 27 22:15:32 2018] 127.0.0.1:51694 Invalid request (Unsupported SSL request)
.env
file right so that I wasn't just getting database connection errors. I no longer am seeing those errors, so I don't think this is DB related.wp-cli.phar
in debug mode didn't reveal any new information.Suggestions?
So i am trying to use this, however it seems that it hardcodes somehow the initial domain aka mydomain.herokuapp.com and if i add a custom domain name, logging in to wp-admin renders ERR_TOO_MANY_REDIRECTS
...
setup new heroku app, add custom domain, setup wordpress directly by accessing the custom domain, try to log in to wp-admin with the new domain - gives error - too many redirects.
the wp-options table seems to reference the new domain as well. so im not sure whats going on.a hint would be great.
...
Git Commit/Version: latest
Get the above error in the logs when deploying to Heroku. Upon doing some research, it appears that Wordpress attempts to write to this file to hardcode ips for the firewall which is started before Wordpress is started and therefore can't use the db:
https://wordpress.org/support/topic/unable-to-open-wp-contentwflogsips-php-for-reading-and-writing/
It is my understanding that there is no support for writing directly to disk in Heroku(?), so I am not sure how this is meant to be set up.
After following the directions for deploying to Heroku, got to Wordpress on Heroku installation and attempt to add a media. After dropping in an image to upload and the upload completes, I get a message in WordPress stating that that the image could not be uploaded and the above message in the logs.
Thanks
Hi Philipp ,
how to upload my own theme & plugin not exist as public ?
fine regards
goodbye
I want to update my wordpress in heroku to 4.8.3 but it can't automatically update, thanks btw I can have wordpress in heroku now, great job!
open the wordpress dashboard
Git Commit/Version:
master
Thank you so much for this awesome app. The only issue I'm having is that I can't display adsense. I've temporarily removed the robots.txt but no luck. Can someone point me to the file where I can allow adsense connections?
...
Git Commit/Version:
Custom images sizes set with add_image_size
in my theme don't seem to be respected. Images instead have the original dimensions of the uploaded file.
With a Sage based theme, configure an image size in setup.php, something like:
add_image_size( 'my-img-size', 2600, 1800, true );
When I run php wp-cli.phar server --host=localhost --port=80
in the root of my project, I get this:
Directory <project root>/web/wp does not exist.
I just forked this repo and tried to follow the Deployment - Local instructions. Here's the pertinent part of my .env
file:
# the db, db user, and db pw are all the same
CUSTOM_DB_URL=mysql://second_stage:second_stage@localhost:3306/second_stage
# WP Settings
WP_ENV=development
WP_HOME=http://localhost
WP_SITEURL=${WP_HOME}/wp
I'm running PHP 7.0.22 and have the latest version of WP CLI (can't find the number).
Hello awesome people,
I've been using Wordpress on Heroku for many months thanks this repo! The only issue I'm having is with my database size. I'm only using a few plugins but have many posts. I have 4,000 posts and 4.0mb db size. I use wp-optimize plugin everyday to remove any transient data. Recently the site jumped to a 6.5mb database size and nothing had been changed, still 4,000 posts, no additional comments or plugin changes. I began deleting posts but the db size wouldn't change and after about 30 seconds I'd be kicked off the site for 1 hour because of the 5mb db size limit with this current heroku plan.
Eventually, I deleted every row from wp_posts but the db size is still 6.5 mb. This leads me to believe that there is still some database caching going on. I'm planning on creating a fresh new site, but unless this database size issue is resolved, I will run into the same problem in a few months.
Thank you in advance.
Ps. I used to use object-cache and it was making my site very fast, instead of 50 queries there would be only be around 5 queries when visiting my homepage. After 1 month, I began getting the classic "There has been a critical error on your website" error. I disabled all of my plugins but nothing changed. Once I deleted object-cache.php from web/app (also commented it out in the composer.json), then the problem went away. I'd love to setup object-cache again, so if anyone has a long-term solution please share.
I guessed that the DB setting is set by CUSTOM_DB_URL of the .env file and set it up.
However, when I opened the top page, DB error occurred frequently such as no wp_post.
CUSTOM_DB_URL seemed to be not working effectively.
So, do I need to add DB settings to web / wp / wp-config.php?
Also, config / environments / development.php
Is it possible to switch the DB settings of each environment by describing the DB definition?
If possible, where do you decide the current declaration of (environment / production / staging / development)?
https://github.com/PhilippHeuer/wordpress-heroku/wiki/Deployment#deployment---local
Git Commit/Version:
current master
If I fork this repo so as to do the One-Click-Deployment but changing files, is there a way to change the buildpack? I see there is a .buildpack file where https://github.com/heroku/heroku-buildpack-php
is defined. But where is the Bedrock buildpack defined (with all the WP files)?
I would like to clone that buildpack and point this project to my (modified) fork. Is it possible?
Thanks
When following along with the custom deployment steps everything works fine, the site deploys to Heroku with no issues. However upon updating WordPress' version, or simply installing a new plugin, the site will to fail to deploy. The issue arises once you have to update your composer.json / composer.lock files.
From my investigation this is due to changes made to the johnpbloch/wordpress
dependency, which you can also read about here:
https://discourse.roots.io/t/johnpbloch-wordpress-moved-to-a-new-configuration-and-wp-goes-missing/9124
I've followed along with the recommendation made in the thread to
johnpbloch/wordpress
from composer.json, run composer update, push to serverjohnpbloch/wordpress
back, run composer update, push to serverHowever I am seeing this error in Heroku's logs:
2017-06-03T16:26:04.495459+00:00 app[web.1]: [03-Jun-2017 16:26:04 UTC] PHP Fatal error: Uncaught Error: Call to undefined function WP_CLI\Dispatcher\get_path() in /app/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:49
2017-06-03T16:26:04.495475+00:00 app[web.1]: Stack trace:
2017-06-03T16:26:04.495584+00:00 app[web.1]: #0 /app/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php(37): WP_CLI\Runner->register_early_invoke('before_wp_load', Object(WP_CLI\Dispatcher\Subcommand))
2017-06-03T16:26:04.495723+00:00 app[web.1]: #1 /app/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(20): WP_CLI\Dispatcher\CompositeCommand->__construct(Object(WP_CLI\Dispatcher\RootCommand), 'server', Object(WP_CLI\DocParser))
2017-06-03T16:26:04.495842+00:00 app[web.1]: #2 /app/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(73): WP_CLI\Dispatcher\Subcommand->__construct(Object(WP_CLI\Dispatcher\RootCommand), 'server', Object(WP_CLI\DocParser), Object(Closure))
2017-06-03T16:26:04.495950+00:00 app[web.1]: #3 /app/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(34): WP_CLI\Dispatcher\CommandFactory::create_subcommand(Object(WP_CLI\Dispatcher\RootCommand), 'server', Array, Object(ReflectionMethod))
2017-06-03T16:26:04.496047+00:00 app[web.1]: #4 /app/vendor/wp-cli/wp-cli/php/class-wp-cli.php(466): WP_CLI\Dispatcher\CommandFactory::create('serve in /app/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php on line 49
composer update
(you don't need to change composer.json / add any new dependencies)Git Commit/Version:
Running off of the latest which at this time is: e8ed1d3
Thanks for putting this template together, I'm looking forward to getting everything work.
I created the app very easily however I have no idea what the default login and password are for the actual site. Is there a default? If so, what is it? If not, how do I create an admin account?
I've been trying to setup an already running wordpress project to run with this configuration, but I'm having 2 issues that occur prior to deploy
My current setup is a Vagrant VM provisioned with PuPHPet.
How can I set the password of the wp-admin ?
Git Commit/Version:
Need to update packages in composer.json to latest versions, especially Wordpress and subsequently the plugins themselves. Packages are currently locked to specific versions. Ran composer update using latest version of composer.phar produces dependency warnings.
Just try to do a composer update using v2 of composer. Warnings should appear.
Git Commit/Version: latest
Any suggestions? Thanks!
How do activate wordpress multisite.
I must say, great job for this solution
Thanks
My website needs to support other languages except for English, but This project defaults to English only.
How can I add other Languages packs to it?
I would like to add a different language pack, but I'm not sure where it should go. I tried creating a languages folder in web/wp/wp-content, but nothing appeared in the admin panel.
I would like to know how can I add more languages to my wordpress installation on heroku. Thank you very much for ur answer!
Wordfence could not get an API key from the Wordfence scanning servers when it activated. You can try to fix this by going to the Wordfence "options" page and hitting "Save Changes". This will cause Wordfence to retry fetching an API key for you. If you keep seeing this error it usually means your WordPress server can't connect to our scanning servers. You can try asking your WordPress host to allow your WordPress server to connect to noc1.wordfence.com.
Can i resolve this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.