Giter VIP home page Giter VIP logo

wordpress-heroku's People

Contributors

codacy-badger avatar dukedhx avatar naoa avatar philippheuer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wordpress-heroku's Issues

The uploaded file could not be moved to uploads

Description of your issue

Unable to get S3 uploads to work properly

Steps to Reproduce

  1. Deploy app to heroku (used auto-deploy button)
  2. Add "bucketeer" as resource
  3. Upload media file in admin
  4. Get "The uploaded file could not be moved to uploads" error

Other Information

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

WordPress 4.8

Description of your issue

When's 4.8 coming down the pike?

Steps to Reproduce

...

Other Information

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!!

How to add my plugins locally then push to heroku ? I need a simple 1,2,3 steps guide

Description of your issue

...I need a simple 1,2,3 steps guide

every time i try to push from my local host I get these errors

Steps to Reproduce

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

Other Information

Git Commit/Version:

Why use memcached and redis-cache plugins at the same time? Why use Nginx Helper?

Really loving this roots.io based boilerplate.

Description of your issue

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?

Steps to Reproduce

None

Other Information

Git Commit/Version:
current master

Some key can't parse correctly AWS_S3_URL

Description of your issue

You are using parse_url function to parse AWS_S3 options.

https://github.com/PhilippHeuer/wordpress-heroku/blob/master/config/plugins/wordpress/wordpress-s3uploads.php#L7

But it can't parse correctly some key included "\n".

Steps to Reproduce

For example, the following string can't parse_url correctly.

<?php
  $env = "s3://hoge:hoge/[email protected]/backetName";
  var_dump(parse_url($env));
?>

Other Information

Git Commit/Version: 564770e

Heroku teams deploy fails

Description of your issue

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.

Steps to Reproduce

  • Create a team in Heroku
  • Deploy to your team

Other Information

Git Commit/Version: I just pressed "Deploy to Heroku"

When trying to Deoply to Heroku - the configuration of SendGrid add-on fails

Hi,

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.

Error when connecting to local WP Admin: Invalid request (Unsupported SSL request)

Description of your issue

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?

Steps to Reproduce

Regular install process for development on local machine

Blank browser page on local machine for brand new WP site

Description of your issue

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]: /

Steps to Reproduce

  1. Start server using php wp-cli.phar server --host=127.0.0.1 --port=3000
  2. Visit http://localhost:3000 in browser

Other Information

  1. Trying to visit a bogus URL (eg 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.
  2. Trying to visit 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)
    So, it looks like something is working here... but obviously not everything.
  3. It took me a while to get the values in my .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.
  4. Running wp-cli.phar in debug mode didn't reveal any new information.

Suggestions?

custom domain name

Description of your issue

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
...

Steps to Reproduce

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.
...

Other Information

Git Commit/Version: latest

Can't add plugins

Description of your issue

After installation, there is no option to add a plugin under the Plugins tab.

Steps to Reproduce

  1. Install
  2. Click Plugins

image

Other Information

Git Commit/Version:

Unable to open /app/web/app/wflogs/ips.php for reading and writing.

Description of your issue

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.

Steps to Reproduce

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

Update Wordpress

Description of your issue

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!

Steps to Reproduce

open the wordpress dashboard

Other Information

Git Commit/Version:
master

Adsense - Failed to load resource: net::ERR_CONNECTION_REFUSED

Description of your issue

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?

Steps to Reproduce

...

Other Information

Git Commit/Version:

Image sizes not respected

Description of your issue

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.

Steps to Reproduce

With a Sage based theme, configure an image size in setup.php, something like:

add_image_size( 'my-img-size', 2600, 1800, true );

Can't run wp-cli server locally

Description of your issue

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.

Steps to Reproduce

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

Other Information

I'm running PHP 7.0.22 and have the latest version of WP CLI (can't find the number).

Database caching help needed

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.

DB error on local environment construction

Description of your issue

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)?

Steps to Reproduce

https://github.com/PhilippHeuer/wordpress-heroku/wiki/Deployment#deployment---local

Other Information

Git Commit/Version:
current master

Changing Buildpack

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-phpis 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

dependency johnpbloch/wordpress moved to a new configuration causing issues

Description of your issue

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

  • remove johnpbloch/wordpress from composer.json, run composer update, push to server
  • add johnpbloch/wordpress back, run composer update, push to server

However 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

Steps to Reproduce

  • follow the steps from https://github.com/PhilippHeuer/wordpress-heroku/wiki/Deployment
  • you can probably skip the heroku config & addons
  • deploy and verify that the installation is working
  • now run composer update (you don't need to change composer.json / add any new dependencies)
  • deploy again
  • the site should be failing now

Other Information

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.

default account?

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?

Local execution and custom templates / plugins

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

  • How can I run the project locally
  • How can I test locally with my custom plugins and themes that are not on some public repository?

My current setup is a Vagrant VM provisioned with PuPHPet.

Wp-admin password

Description of your issue

How can I set the password of the wp-admin ?

Steps to Reproduce

Other Information

Git Commit/Version:

Any plans to upgrade dependency versions?

Description of your issue

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.

Steps to Reproduce

Just try to do a composer update using v2 of composer. Warnings should appear.

Other Information

Git Commit/Version: latest

Any suggestions? Thanks!

image

Setting up Multisite

Description of your issue

How do activate wordpress multisite.

I must say, great job for this solution
Thanks

Add others Language to Wordpress

Description of your issue

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?

Adding other languages

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.

More languages [SOLVED]

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

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.