Comments (7)
@zaifastafa did you read the readme? This setup uses Composer to manage plugins and themes.
from wordpress-nginx-docker-compose.
Hi, I have a similar question:
I bought a theme, it comes in a zip file, I don't think it's possible to install it through composer.
How should I proceed to install it? When I upload it then hit install, I see this error. I don't know if it's related to this issue.
get_current_page was called incorrectly. Current page retrieval should be called on or after the current_screen hook.
I know it's a noobie question. But if you have any ideas on how to fix I would be very grateful.
from wordpress-nginx-docker-compose.
I'm using the repo as a reference so I may be wrong but I would think that your host volume is the key here. Add your files to your host and they should be available to the container. Im used to working composer on drupal and I wouldnt be using composer on the container (or production environments). If you dont want to use composer then just download in a normal way to your host. Im not an expert on wordpress development so I could be wrong.
from wordpress-nginx-docker-compose.
@araujoantonio @gerontius Two ways:
- You can enable plugin and theme updates and installation from the admin like this:
Editsrc/config/environments/development.php
Set these two flags:
Config::define('DISALLOW_FILE_EDIT', false);
Config::define('DISALLOW_FILE_MODS', false);
Then you can update/install plugin/themes through wp-admin
- You can also just drop in the theme in
src/web/app/themes
from wordpress-nginx-docker-compose.
Hi @urre
Thanks for your answer. I've tried to do what you suggested, but it didn't work. I'm still seeing the error message that I reported first (get_current_page was called incorrectly. Current page retrieval should be called on or after the current_screen hook
) when I enter the front-end setup wizard for the theme.
For me just dropping the theme under src/web/app/themes
is not a solution because it requires some sort of a build process (done by the setup wizard).
For now, I will go forward with the official docker image, but if you have any ideas on how to solve this I would love to hear.
from wordpress-nginx-docker-compose.
@araujoantonio that error looks like something related to the theme you are trying to install?
from wordpress-nginx-docker-compose.
Strangely the error doesn't happen on the official WP Docker image. I will continue to use another docker setup now, thanks for your support anyway.
from wordpress-nginx-docker-compose.
Related Issues (20)
- Redis Object Cache HOT 1
- Nginx doesn't work properly HOT 5
- Composer exited with code 0 HOT 2
- Unable to upload media HOT 2
- Site Working very slow HOT 2
- The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) HOT 3
- Mailhog not working HOT 3
- exec format error HOT 1
- Run `wp-cli` commands as a part of Docker setup
- Your site could not complete a loopback request HOT 4
- phpMyAdmin Username:Password HOT 2
- .env not created inside src HOT 1
- Error 500 on post,page creation HOT 1
- Update vlucas/phpdotenv to ^5.4 HOT 3
- Performance on M1 Apple MacBook Pro HOT 2
- WordPress & PHP versions HOT 1
- wp-cli HOT 1
- Unable to update/install theme or plugin HOT 2
- PHP 8.1 update for Sage10 HOT 5
- not working in linux HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-nginx-docker-compose.