ellefsen / wordpress-heroku-php Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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?
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
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
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 ?
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
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?
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
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?
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.