0

when I am using the plugin on the home page this error is coming We're sorry, an error has occurred while generating this content. I have debugged my code I think there is an error in these two lines

<?php
    $url = 'https://api.instagram.com/v1/users/' . $userId . '/media/recent/?access_token=' . $accessToken.'&count='.$imageNumber;

    $args = stream_context_create(array('http' => array('timeout' => 2500,)));

any help will be appricated

  • Which mode is enabled production or developer? – Chirag Patel Mar 13 at 13:07
  • developer mode is enbaled – Ashish Ramchandani Mar 13 at 13:10
  • I think you have to double check. because if you are in developer mode then error is no showing like as you mentioned in your question. it will showing like this. Error filtering template: Unable to write file into directory \C:/xampp/htdocs/Magento/pub/media/catalog/product\cache\f073062f50e48eb0f0998593e568d857/m/b. Access forbidden. – Chirag Patel Mar 13 at 13:14
  • i have own the developer mode from advanced setting but error is coming same – Ashish Ramchandani Mar 13 at 13:19
  • Run command php bin/magento d:mode:set developer and check again – Chirag Patel Mar 13 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.