We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Grid field giving error instead of file that has been uploaded.

How Do I?

SChristy's avatar
SChristy
23 posts
9 years ago
SChristy's avatar SChristy

Ok, I need help. I am using EE3.0.5 on a local dev environment and have a grid field with a file in it. In the control panel, I can upload files without problem. In my template, I have a simple channel:form like this (field:question1_docs is the grid field):

{exp:channel:form channel="reporting_channel" entry_id="2" return="{segment_1}/{segment_2}/{segment_3}"}
  
  <input type="hidden" name="title" value="{title}">
  <input type="hidden" name="url_title" value="{url_title}">

  {field:question1} 
  
  {field:question1_docs} 
  
  <button type="submit" class="btn btn-primary btn-success">Submit</button>
  
 {/exp:channel:form}

However, when I load it, I receive this error instead of the file names:

Warning
include(http://ampcafe305.dev/reporting_uploads/): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
ee/EllisLab/ExpressionEngine/Service/View/View.php, line 139 show details
Severity: E_WARNING
Warning
include(): Failed opening 'http://ampcafe305.dev/reporting_uploads/' for inclusion (include_path='.:')
ee/EllisLab/ExpressionEngine/Service/View/View.php, line 139 hide details
Severity: E_WARNING

In the CP, they show up fine. I am logged in as a super admin. If I copy/paste the path above in to the browser, it gives me a 403 error also. However, if I add on the file name, it displays it correctly. Is this a bug or am I doing something wrong?

Also, if I try to upload a new file from the front end, it doesn’t upload it though it does create an empty row in the entry. It also overwrites the files currently loaded.

Any help appreciated. Steve

       
Robin Sowell's avatar
Robin Sowell
13,159 posts
9 years ago
Robin Sowell's avatar Robin Sowell

I confirmed on a clean install and I’ve added a bug report here. It happens with just a file field as well.

For now, the best option would be to subscribe to the bug thread as the developers should post back there with a patch as soon as they’ve got it fixed up.

Sorry you ran into a bug- I’m a bit surprised that hadn’t come up, but I couldn’t find it in the tracker.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.