Hot answers tagged

11

Turns out my problem was the {exp:low_variables:pair} tag was nested in a {exp:channel:entries} tag. To fix this you have to use the var_prefix="" parameter. {exp:low_variables:pair var="lv_my_image" var_prefix="assets"} {assets:url} {/exp:low_variables:pair} With this syntax you can access all of the Assets' tags. {exp:low_variables:pair var="...


8

The solution was to recurse 777 to the /system/expressionengine/cache/ directory as there are thumb directories that Assets creates to hold thumbnails, etc. Thank you Lisa Wess (from Pixel & Tonic) for the solution!


7

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 up in many addons and was recently fixed in EE core code. For Assets v2.6 Change line 615 of ft.assets.php FROM: $sql = "SELECT DISTINCT a.source_type, a....


6

this is because on the first request to a folder, Assets will create thumbnails appropriate for your screen (retina or not). For 100+ files, that's 100+ requests that aren't instant and browsers limit simultaneous requests to the same server, so it's browser hitting the limit because of the initial processing required. After this, though, the images will ...


5

Okay here is what I did to get this working correctly. This by no means solves the initial problem but it does get you up and running again. I basically did what Brandon suggested in his comment—about setting the server paths directly and bypassing the config file. I did this before I ran the module updater or any indexing, so that none of those extra, ...


5

If you open system/expressionengine/third_party/assets/helper.php and replace all occurrences of static:: with self::, this error will go away. We'll have an official release with the fix shortly.


5

OMG: I found the problem! It's because in my .htaccess I added a www. and I set my base_url without www. so it's just a www. or no www. issue for me! hope that helps! cheers stefan


5

I'm hoping I'm getting this right. I'm not a Wygwam/Assets expert, so... The way we have handled it is by setting our EE file upload preferences 'URL of Upload Directory' settings with the relative path from the web root. For example: '/images/article_images/' I believe Wygwam then uses the {fieldir_1} syntax when it saves the image path, so in the channel ...


5

Backup your database first, of course, but theoretically this should be easy-peasy: Just add your S3 sources in the settings and then, in the Assets File Manager just drag all your files and folders from your EE sources to S3 sources and that's that - no changes in entries should be required at all.


5

If you have an Assets field called “article_images”, you can create a simple HTML upload input like so: <input type="file" name="article_images"> <input type="hidden" name="article_images_filedir" value="1"> The first input is the actual File input, and the second tells Assets which upload directory to place it in. In time, Assets will also ...


5

If you look in system/expressionengine/config/mimes.php, is 'flv' in that list? If not, try adding: 'flv' => 'video/x-flv',


5

Issue appears to be with User Session Type in Security and Settings. Ensuring that: Control Panel Session Type = Cookies and Session ID User Session Type = Cookies only seems to fix the issue for me. Flipping the user session type to Cookies and Session ID made the error recur on my setup. I seemed to be running into issues with sessions on other ...


5

Tim, currently this is not possible, but we do have some interesting ideas that would allow you to accomplish this in the next Assets release, which is currently in active development. I don't have an ETA for you, but we are working on it


5

Assets does none of your four bullet points - these are all best done via CE Image as you're doing now (and it does all with aplomb). Why do you want to replace it? It's bar-none the best EE add-on for image manipulation (in the same way that Assets is the best file manager for EE). Re: S3 - Assets can store your files in an S3 bucket, but if you're going ...


5

EE simply removes any tags corresponding to custom fields that have no data. So by the time EE is ready to parse the outer {if} conditional, it will look like this: {if > 0} Try wrapping the field tag in quotes: {if '{tech_documents:total_rows search:doc_thumb="IS_EMPTY"}' > 0}


5

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: $field_name = ee()->db->select('field_name')->from('channel_fields')->where(array('field_id' => $this->field_id))->get()->row('field_name'); ...


4

Instead of sharing the url to the file itself, share the url to an entry which provides a download link to the file "attached" to it. The site admins would upload/attach the file to an entry. If the file needed updating they would edit the existing entry and upload a new file. The name of the file wouldn't matter as that would not be shared. The url to the ...


4

We'll have an official release out for this shortly, but in the meantime, open up system/expressionengine/third_party/assets/ft.assets.php. Your line 523 should look like: foreach ($data as $file_id) { try { $vars['files'][] = $this->EE->assets_lib->get_file_by_id($file_id); } catch (Exception $exception) { // ...


4

After debugging the matrix update from 2.4.2 to 2.5.2 it all began to work again. so image manipulations are still supported with assets 2.0.2, it's just not in the docs yet. btw: this thread helped a lot: https://getsatisfaction.com/pixelandtonic/topics/matrix_2_5_upgrade_error


4

It looks like the difficulty here was a very large number of folders and sub-folders. Condensing the folders down has sped up the load significantly and are working on improvements in that area for the future of Assets. Thank you! -Lisa Wess Pixel & Tonic


4

Pixel and Tonic updated Assets to account for $config overrides. Update to 2.0.2 and you should be set! http://pixelandtonic.com/assets/releasenotes


4

I've had a similar issue, which in the end had to do with me not being consistent with the usage of www. Is the behaviour the same when you use www or not? You could also add $config['assets_site_url'] = '/index.php'; To the config file of EE, maybe that helps?


4

Assets does work with the built-in image manipulations when using local sources. See Asset Image Manipulations ie: {my_assets_field:url:my_manipulation}


4

Doh! The answer is to use the documented var_prefix parameter so I can then reference the entry's {title} field as normal :$ That Brandon fella has thought of (nearly) everything :)


4

To make sure extra processing is done before the var is put in the template, use the tag syntax rather than the variable syntax: {exp:low_variables:single var="my_wygwam_var"}


3

The undefined index errors should be fixed in an upcoming 2.0.2 release. I think that'll remove the error that follows what you're seeing. -Lisa


3

I had previously attempted to try out the Assets 2 Beta, but upon receiving some PHP errors and not having time to test it out thoroughly, I restored a database backup. This backup however, wasn't set to drop all tables in the database—only ones that were being imported. After manually removing all tables and reimporting my database backup, I no longer ...


3

Blair, when Expression Engine calls Assets module tags, {username} is still just a string saying "{username}" (see Low's excellent overview for parse order - http://bit.ly/UwfZE2). You'll have to get the username using a different approach - probably by using PHP on Input.


3

We use Rackspace for our site and are expanding to CloudFiles to take advantage of the integrated CDN. Is Assets an option here? No. Assets only works with the local file system and Amazon S3. Can I manage other types of assets like PDFs? Yes, you can manage any type of file with Assets.


3

You need to Update Indexes after adding the new S3 source.


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