Code Monkey home page Code Monkey logo

wordpress-heroku-php's Issues

Clarify readme

The readme states

Add this below Heroku Toolbelt setting to swap the PHP you use on the command line.

export PATH="$(brew --prefix homebrew/php/php55)/bin:$PATH"

I don't quite understand what I'm supposed to do. Can you clarify a little?

Not able to see Add new theme

I am new to word press and I have deployed WordPress to heroku and I cant see the add new theme option.
Any help is appreciated

Compatibility with php-fpm7.0 ?

When I try to run foreman for local instanse I got:

'02:04:59 web.1  | started with pid 21960
02:04:59 web.1  | Usage: /etc/init.d/php-fpm7.0 {start|stop|status|restart|reload|force-reload}
02:04:59 web.1  | This program requires PHP 5.5.11 or newer; check your 'php-fpm' command.
02:04:59 web.1  | exited with code 1
02:04:59 system | sending SIGTERM to all processes

Error on first install

Hi there, thanks for this awesome work.

I'm having an issue after I followed the install steps, Heroku log gives me :

[04-Aug-2017 09:54:28 Europe/Oslo] PHP Fatal error: Uncaught Dotenv\Exception\InvalidPathException: Unable to read the environment file at /app/public/../.env. in /app/vendor/vlucas/phpdotenv/src/Loader.php:75

I don't understand why it's looking for a .env file if it's gitignored and that my Heroku Environment variables have the CLEARDB_DATABASE_URL set.

Can anyone help me ?

How to add plugins and themes?

Hello, I just deployed an app with this Heroku button and now I'm trying to install plugins and themes.

However, when I heroku git:clone -a my-app, the Heroku CLI tells me that it appears that I have cloned an empty repository. My attempt here was to clone the heroku repository and add my theme in the Wordpress configuration, but it seems to be that is not the way.

Please help me solve this :) ty

XML Sitemap Rewrite Issue

I have installed a plugin to generate sitemap, but it saying "Since you are using Nginx as your web-server, please configure the following rewrite rules in case you get 404 Not Found errors for your sitemap:"

rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;

Can someone guide me how to setup these rewrite rules?

App crashes when I try to log in

I installed the app and created a user. When I click Log In the app crashed. Here are the logs:

2016-12-13T21:24:50.484145+00:00 heroku[router]: at=info method=GET path="/wp/wp-login.php" host=testtest-wordpress.herokuapp.com request_id=febc36ad-a4d7-4eba-acd6-654c1e7e72bf fwd="78.52.131.150" dyno=web.1 connect=0ms service=825ms status=500 bytes=443
2016-12-13T21:24:50.498979+00:00 app[web.1]: [13-Dec-2016 21:24:50 UTC] PHP Warning:  Illegal string offset 'remember' in /app/public/wp/wp-includes/user.php on line 39
2016-12-13T21:24:50.499139+00:00 app[web.1]: [13-Dec-2016 21:24:50 UTC] PHP Warning:  Cannot assign an empty string to a string offset in /app/public/wp/wp-includes/user.php on line 39
2016-12-13T21:24:50.499288+00:00 app[web.1]: [13-Dec-2016 21:24:50 UTC] PHP Warning:  Illegal string offset 'user_login' in /app/public/wp/wp-includes/user.php on line 54
2016-12-13T21:24:50.500035+00:00 app[web.1]: [13-Dec-2016 21:24:50 UTC] PHP Fatal error:  Uncaught Error: Cannot create references to/from string offsets in /app/public/wp/wp-includes/user.php:54
2016-12-13T21:24:50.500086+00:00 app[web.1]: Stack trace:
2016-12-13T21:24:50.500149+00:00 app[web.1]: #0 /app/public/wp/wp-login.php(775): wp_signon('', '')
2016-12-13T21:24:50.500172+00:00 app[web.1]: #1 {main}
2016-12-13T21:24:50.500256+00:00 app[web.1]:   thrown in /app/public/wp/wp-includes/user.php on line 54

Error when running locally.

Works fine when deployed to Heroku however, running locally gives me this error:

14:58 ~/github/blog-towbook-com (master) โœ• $ foreman start
14:58:46 web.1  | started with pid 25217
14:58:46 web.1  | Booting on port 5000...
14:58:46 web.1  | DOCUMENT_ROOT changed to 'public/'
14:58:46 web.1  | Using Nginx server-level configuration include 'nginx_app.conf'
14:58:46 web.1  | vendor/bin/heroku-php-nginx: line 21: /Users/mattgraham/github/blog-towbook-com/load Gem.bin_path('composer', 'composer', version)/heroku/heroku-buildpack-php/conf/nginx/heroku.conf: No such file or directory
14:58:47 web.1  | Starting php-fpm...
14:58:47 web.1  | Starting nginx...
14:58:47 web.1  | [16-Dec-2014 14:58:47] ERROR: failed to open configuration file '/Users/mattgraham/github/blog-towbook-com/load Gem.bin_path('composer', 'composer', version)/heroku/heroku-buildpack-php/conf/php/php-fpm.conf': No such file or directory (2)
14:58:47 web.1  | [16-Dec-2014 14:58:47] ERROR: failed to load configuration file '/Users/mattgraham/github/blog-towbook-com/load Gem.bin_path('composer', 'composer', version)/heroku/heroku-buildpack-php/conf/php/php-fpm.conf'
14:58:47 web.1  | [16-Dec-2014 14:58:47] ERROR: FPM initialization failed
14:58:47 web.1  | Process exited unexpectedly: php-fpm
14:58:47 web.1  | Going down, terminating child processes...
14:58:47 web.1  | vendor/bin/heroku-php-nginx: line 267: 25283 Terminated: 15          tail -qF -n 0 "${logs[@]}" 1>&2
14:58:47 web.1  | vendor/bin/heroku-php-nginx: line 275: 25280 Terminated: 15          sleep 2
14:58:47 web.1  | exited with code 1
14:58:47 system | sending SIGTERM to all processes

this is over my frontend processing. any thoughts?

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.