Git Product home page Git Product logo

Comments (13)

alpini avatar alpini commented on May 27, 2024 1

no and I've got this error every time that i try to upload an image:

120px-Logo_Ana.jpg
The uploaded file could not be moved to uploads/2017/11.

from heroku-wp.

xyu avatar xyu commented on May 27, 2024

I have not worked with the Visual Composer plugin so I can not say for sure but I suspect it's because that plugin may require write access to the filesystem (same issue as #17). Can you try enabling write access or provide some more detailed information as to what's failing and any errors you see in your error logs?

from heroku-wp.

alpini avatar alpini commented on May 27, 2024

some one can help me in installing plugin on a deployed version on heroku side, i have understand that i need to install them in local repositories and the push to heroku but can be able to do this i have copied the plugins in the right directory (or maybe i think to have done this correctly) ... but i thought that this isn't enough to make them recognised by wordpress, i haven't the button add plugin under this menu in wordpress so i don't know how to do this ... can help me please?

from heroku-wp.

DSaxon avatar DSaxon commented on May 27, 2024

@alpini you mush place the plugin in the plugin folder go to public > wp-content > plugins and place the plugin there push to git hub and re deploy your app

from heroku-wp.

alpini avatar alpini commented on May 27, 2024

Thanks a lot now plugins seem to work, i'll test today, i got another issue with images, i have setted up as instruction said the S3 configuration and activated the plugin, but i still can't be able to upload the background image and some other little logos on the deployed app ... may be someone can help me also with this?
BR
Sincerely

Carlo - Thanks in advance

from heroku-wp.

DSaxon avatar DSaxon commented on May 27, 2024

from heroku-wp.

angyts avatar angyts commented on May 27, 2024

ya, S3 buckets can be rather tricky to set up.

I think you need to first setup the S3 bucket properly first and make sure the API keys are workign.

Also need to assign a "bucket policy" to allow "PUT" request by the user w the API keys.

Then u need to put the API key pairs in the wp-config file... sorry out of office now,. cannot remmeber the details.

from heroku-wp.

alpini avatar alpini commented on May 27, 2024

i have setup the bucket and allow to all user to read an list items, i have also uploaded in the bucket pictures and so on ... just for trying but haven't tought to API keys ... now i'll check them

from heroku-wp.

alpini avatar alpini commented on May 27, 2024

@punggolzenith I'd setted up the, or better, i think to set up correctly the bucket policy, but no way to get it works, please can give me some suggestion to make things works, sorry to bother and thanks in advance ...

from heroku-wp.

angyts avatar angyts commented on May 27, 2024

hahaha, aws is for professionals, so it can be frustrating to set up..

ok as you can see, i am also no pro, but a hobbyist who have enough S3 buckets to share my exp.

  1. Go to IAM, create an individual IAM user with the following policy: "AmazonS3FullAccess"
  2. Go to S3, go to your bucket, click "more"--> "make public"
  3. then permissions, bucket policy: this is what i have.. but you should make ur own... use the policy generator:
{
    "Version": "2012-10-17",
    "Id": "Policy1478572547183",
    "Statement": [
        {
            "Sid": "Stmt1478572522032",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::<INSERT THE NAME OF YOUR BUCKET HERE>/*"
        },
        {
            "Sid": "Stmt1478572545616",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::<INSERT THE ARN NAME OF YOUR IAM USER HERE>"
            },
            "Action": [
                "s3:DeleteObject",
                "s3:PutObject"
            ],
            "Resource": "arn:aws:s3:::<INSERT THE NAME OF YOUR BUCKET HERE>/*"
        }
    ]
}
  1. CORS configuration: erm, this one i suggest you leave it alone first.. but if you configure then your resources cannot be "hotlinked"

  2. Then get the set of access key and secret key of this IAM user and put it in your wp-config file and commit and walah! blazing fast AWS S3

define( 'AWS_ACCESS_KEY_ID', 'YOUR KEY HERE');
define( 'AWS_SECRET_ACESS_KEY', 'YOUR SECRET KEY HERE');

(FYI this commits your access keys into the repo which might not be so recommended for security reasons, cos i tried what the readme says by setting it as an environmental config in heroku but i couldn't get it to work)

  1. if you still have problems. Check your S3 bucket first, if you can publicly access it. Then perhaps try to
define( 'WP_DEBUG', true );

then try upload something, and share the error code?

from heroku-wp.

alpini avatar alpini commented on May 27, 2024

@punggolzenith may we can setup a team viewer section for finishing to setup the S3 service i have made all Your suggestion but still not work (this evening i try also with debug) but honestly I'm not skilled enough for it ...

from heroku-wp.

angyts avatar angyts commented on May 27, 2024

err. if you realised, this is a public repo, open source project (as compared to commercial). We are all volunteers of our time here.

Perhaps you are expecting some service support which might be more compatible with like a paid plan like AWS support plan or other paid projects. Otherwise, i don't think its fair to request for support like this level.

sorry bro, its RTFM or if you have a friendly coder near you, beg him to help.

from heroku-wp.

alpini avatar alpini commented on May 27, 2024

Dear pungolzenith, You're right, i didn't expect any support from here, and sorry for asking, I'm just trying to finish this implementation just for skilling myself and to try to understand how things works, as You said I'm non professional too, so sorry if I've asked something that can seems like a request of technical support for payment project ... I would like to say thank You to You and to all the people that give out their skills for free just for enjoying the knowledge ... truly sorry for asking it was not in my intention to pretend any kind of support ... :)

from heroku-wp.

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.