• The audio file is not being generated. I found the following 2 lines in the error log.

    • AmazonAI_PollyService::save_post Saving post ( id=163688 )
    • AmazonAI_PollyService::save_post Starting background task process ( id=163688 )
    • AmazonAI_BackgroundTask::trigger Triggering background task generate_post_audio
    • PHP Notice: Trying to get property ‘ID’ of non-object in /wp-content/plugins/amazon-polly/public/class-amazonpolly-public.php on line 112
    • This topic was modified 4 years, 11 months ago by Pratham.
    • This topic was modified 4 years, 11 months ago by Pratham.
Viewing 1 replies (of 1 total)
  • Thread Starter Pratham

    (@pratham2003)

    One more issue I spotted.

    Regarding the BackgroundTask class where the current set of cookies are passed to an internal HTTP request. In my case that internal request ends up in a 403 Forbidden error.

    "POST /wp-admin/admin-post.php HTTP/1.1" 403

    This might be specific to my server setup so let me evaluate this and get back.

    Update 1: This was an issue specific to our setup. After fixing this the audio file is being generated.

    A slightly off-topic question.. Can this type of implementation where cookies are being routed can cause issues where the current authenticated session is limited to a specific client IP?

    • This reply was modified 4 years, 11 months ago by Pratham.
Viewing 1 replies (of 1 total)
  • The topic ‘Trying to get property ‘ID’ of non-object’ is closed to new replies.