Coder Social home page Coder Social logo

Comments (7)

urre avatar urre commented on August 26, 2024

@zaifastafa did you read the readme? This setup uses Composer to manage plugins and themes.

from wordpress-nginx-docker-compose.

araujoantonio avatar araujoantonio commented on August 26, 2024

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.

gerontius avatar gerontius commented on August 26, 2024

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.

urre avatar urre commented on August 26, 2024

@araujoantonio @gerontius Two ways:

  1. You can enable plugin and theme updates and installation from the admin like this:
    Edit src/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

  1. You can also just drop in the theme in src/web/app/themes

from wordpress-nginx-docker-compose.

araujoantonio avatar araujoantonio commented on August 26, 2024

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.

urre avatar urre commented on August 26, 2024

@araujoantonio that error looks like something related to the theme you are trying to install?

from wordpress-nginx-docker-compose.

araujoantonio avatar araujoantonio commented on August 26, 2024

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)

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.