Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: [AMP] fopen errors

    I’m still getting the same error on version 0.3.2.

    I think it is happening on the first time each AMP-produced page is opened. So, if you reload, or return, the error is gone.

    <b>Warning</b>:  fopen(/wp-content/uploads/2016/01/2.1_resolutionreboot.jpg): failed to open stream: No such file or directory in <b>/nas/content/staging/growmagazine/wp-content/plugins/amp/includes/lib/class-fastimage.php</b> on line <b>31</b><br />
    Thread Starter thomasatsmf

    (@thomasatsmf)

    I looked right past my own answer. I was so focused on the post itself that I looked right past the id that was being passed in on the ‘apple_news_do_fetch_exporter’ action.

    This simple add to functions.php handled my problem right off in case anyone else needs to handle the same issue:

    function grow_store_current_post($post_id){
        global $post;
        $post= get_post($post_id);
    }
    add_action('apple_news_do_fetch_exporter', 'grow_store_current_post');
Viewing 2 replies - 1 through 2 (of 2 total)