Hot answers tagged

9 votes
Accepted

Assets errors with MySQL 5.7.X

The problem is that many developers don't know how to write compliant SQL statements - they're software developers who find themselves also filling the role of database developers. This problem crops ...
  • 692
5 votes
Accepted

PHP error when using Low Variables with Grid and Assets

Okay, this definitely is an Assets issue, but here's a temporary fix. Open up ft.assets.php and look up the grid_replace_tag method, around line 1771. In there, you can see this line of code: $...
  • 11.3k
3 votes

Assets out of memory

Fixed: I found ini_set('memory_limit', '64M'); in /system/expressionengine/third_party/assets/sources/s3/source.s3.php and changed it to 1024M
3 votes
Accepted

Assets: Cannot upload file using "simple file input" method

This is due to a change in how EE validates Channel Form fields (not sure when this was implemented). When you upload a file via a file field, that field name isn't actually populated in the $_POST ...
  • 17.4k
3 votes

Deployment server feautures

Suggest you contact the hosting provider recommended by EllisLab: https://ellislab.com/community/hosting Also read this whitepaper supplied by them: https://www.nexcess.net/expressionengine/hosting-...
  • 5,353
2 votes
Accepted

Working with staging server and production server - can they share the same Assets locations?

I have a client that has a similar setup with Assets and S3 and it works without issues, content created on local, dev, staging has no issues being added to the live site or any combination of that. ...
  • 7,556
2 votes
Accepted

Unable to use Assets in in HTTPS

It's also worth noting that using protocol relative ( //domain.com ) will work in most situations. This allows you to not have to hardcode a protocol specific url. Helpful when you're using the same ...
2 votes

Can't save large matrix field

1) read server logs 2) turn debugging on in index.php This should help you understand better where the problem is. I have lots of issues like that and Usually it is a matter of server configuration ...
2 votes

Assets v2.4 producing error when saving an entry after upgrade from EE v2.4 to EE v2.9

I'm using SuperSearch and getting the same issue, it appears that 'entry_id' is no longer being set in the settings array. I've fixed/patched for now by simply replacing line 2214 in the ...
2 votes
Accepted

How to trigger P&T Assets to Update Indexes from a template

I got an email back from Andris at P&T with the following: Hey Rowan. Indexing generally refers to a bunch of files - seems to me that you'd be doing that one file at a time. You should ...
2 votes

Missing thumbnails in Assets

It turns out my database.php file had an extra blank line at the beginning. (see that extra line?) And this was corrupting output in EE. Any php file that is included (called by the main php file) ...
  • 382
2 votes

Assets in Grid In Low Variables - multiple files

I reported this bug to Pixel & Tonic, and they right away got working on a "duct-tape" type fix. It seems, to get this working, in Assets 2.6, you can change line 1810 of system/expressionengine/...
2 votes
Accepted

Limit S3 Upload Size in P&T Assets?

Sorry, Kristen, Assets does not have that feature.
2 votes

Migration from Assets to native File Manager

It depends upon what you call 'easy'. It can be done, but is quite complicated, and AFAIK none has written a utility to do this migration for you (though it probably could be created). Assets bases ...
  • 3,572
2 votes

Migration from Assets to native File Manager

I've been working on upgrading an EE2 6-site MSM installation up to EE5 and in the process realised that Assets now requires a separate license for each site. So to save myself $600 I wrote a script ...
1 vote

Assets within a relationship field

I had the exact same problem. And I might have the solution for you: {suggested_products} {suggested_products:product_images parse="inward"} {url} {/suggested_products:product_images} ...
  • 437
1 vote

Importing assets programmatically

All files in asset fields are stored in a bunch of the exp_assets_* tables. You can insert/delete/update rows to make the changes you want. For instance, you can add new files to exp_assets_files, and ...
  • 1,232
1 vote
Accepted

Migrate site, Assets not displaying files

Are these fields set appropriately? Are you making sure if your site is behind a certificate, it uses HTTPS for a protocol? These settings affect the config variable Derek Hogue was speaking of (...
  • 5,900
1 vote
Accepted

How complicated would it be to move from grid containing assets to a standalone assets?

I'd recommend doing some trial and error on a copy, howeve your plan is almost right... You'r right in that you would have to disect how multiple selections are stored in exp_assets_selection table, ...
  • 2,418
1 vote
Accepted

CE Image + Assets + S3 = Really Long and Ugly URL

I know this issue has been addressed multiple times in the support forums (and possibly already on EE Stack Exchange), but hopefully answering here too will be helpful to others down the road: The ...
1 vote

Add Drag/Drop Confirmation to Assets

This is a pretty simple hack if you're interested in this functionality. You can add your confirm() JavaScript to (in Assets 2.3.2) lines 791 (for folder confirmation) and 1057 (for file confirmation)...
1 vote

How to make Assets ignore html files

There was a change in Assets 2.2.3, "config settings no longer require slashes in the array values". If you want Asset to ignore PHP, HTML and JavaScript files, you can try this: $config['...
1 vote

Assets field inside of a grid inside of a low variable -- Asset not saving

Ok after mucking around for a bit I found the combination was this was what I was trying to no avail. {exp:low_variables:pair var="grid_variable_name" limit="1"} {grid_variable_name:...
1 vote

Assets Field within Structure Entries

I have added an updated version of parse_file_paths by rsanchez as a fork which now will work in EE 3.x and up. All I did was to add the addon.setup.php file to the zip file with the appropriate ...
1 vote

Assets won't upload large file?

Apache: Keep-Alive Timeout should be more than 5 and turned on (2GB files is around 100) PHP: check open_base Server: your /tmp partition needs to be more than the to uploading file. Most /tmp ...
  • 76
1 vote

Working with staging server and production server - can they share the same Assets locations?

Not a bad approach; I'm using it on a large project now and we haven't had too many issues. In our setup, development/staging share the same database but have their own file system for templates/...
  • 1,785
1 vote

Delete Assets input fields in a front-end form

Should use 'change' event instead of click. Cause user may not select any new file, then it will remove the existing file. <img src="{url}" /> <input type="hidden" name="member_photo" value="...
  • 11
1 vote

Delete Assets input fields in a front-end form

Darren used a button, which should work too, but here's the jQuery I came up with to remove the name attribute value: HTML: <label class="control-label" for="member_photo">Performer / Band ...
  • 626
1 vote
Accepted

Delete Assets input fields in a front-end form

I think you need to output a delete button/checkbox alongside each image/input. You can then use jQuery to remove that img/input from the DOM so when you submit the form it's no longer there. Maybe ...
  • 203
1 vote

Assets and Low Variables not compatible?

Appears the problem was a conflict with another custom add-on that was installed. I've disabled it for the time being and I'll review the source code to fix at a later date.
  • 1,986

Only top scored, non community-wiki answers of a minimum length are eligible