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

New Extension: nGen File Field for FieldFrame

Development and Programming

verveuster's avatar
verveuster
34 posts
about 16 years ago
verveuster's avatar verveuster

Hi

i am using ff-matrix, ngen-fileField, imagesizer, floatbox and some php with getimagesize to build an image-gallery.

i get the following error-message: Warning: getimagesize(/images/uploads/reportagen/_ASC5365.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/www/web146/html/admin/core/core.functions.php(637) : eval()’d code on line 196

here the code:



does anybody know what the problem could be?

thanks

Using: EE v 1.6.7 Field Frame v.1.3.3 nGen File Field 0.9.10

       
Angie Herrera's avatar
Angie Herrera
357 posts
about 16 years ago
Angie Herrera's avatar Angie Herrera

@verveuster: I’m no expert but that error message seems to indicate that there’s an issue with getimagesize. I would suggest trying to leave out some of the add-ons to narrow down the issue further and determine what exactly it is. For instance, do you get the same error when you use nGen FF alone or with just 1 of the other add-ons?

       
kmgkid's avatar
kmgkid
50 posts
about 16 years ago
kmgkid's avatar kmgkid

Hey All,

I’m using nGen File Fields for the FieldFrame framework to upload my images and crop them using img Sizer. Everyting was perfect until I changed servers. now the images dont show up on the site, however field frame is showing the thumbnail in the Control Panel. ANy ideas? Thank you

       
James Smith's avatar
James Smith
259 posts
about 16 years ago
James Smith's avatar James Smith

First thought is that the GD image library is not installed on the new server? It’s required by imgsizer.

My guess is that the thumbnails you see in the CP have already been generated by imgsizer and are cached.

       
kmgkid's avatar
kmgkid
50 posts
about 16 years ago
kmgkid's avatar kmgkid

wow James thanks for the super lighting response. IT was actually a folder permission issue.

       
Fred Boyle's avatar
Fred Boyle
73 posts
about 16 years ago
Fred Boyle's avatar Fred Boyle

To all mentioning the lack of errors in SAEF. This is a known issue and I’ll be including this functionality in the next release.

Also the next release, as previously stated, will have a setting to disable the “Use existing file” functionality per custom field or FF Matrix cell.

If you’re having a particularly stubborn issue please PM me as it seems the system is not sending me notices when posts on this thread occur. Be aware that it may still take me several days before getting back to you but I’ll know for sure you have an issue.

Thanks!

       
Adrienne L. Travis's avatar
Adrienne L. Travis
213 posts
about 16 years ago
Adrienne L. Travis's avatar Adrienne L. Travis

Couple of feature requests for the next release:

Mark Huot’s file extension had options to “sanitize” filenames (remove all characters except alphanumeric, underscore, and dash), AND to “rename” files (assign every file uploaded a sequential-ish number instead of keeping the original name.) His extension allowed for those on a per-location basis, but honestly i don’t care about that; one single across-the-board setting would be totally fine for me on those. Sanitization is definitely the more important of the two – i have a LOT of clients who don’t realize you shouldn’t use spaces, asterisks, parentheses, etc. in filenames – but i would love it if i could have both options.

Thanks for listening!

       
Fred Boyle's avatar
Fred Boyle
73 posts
about 16 years ago
Fred Boyle's avatar Fred Boyle

@Adrienne Those features have been in nGen File for some time now, we just didn’t make it a setting. It automatically cleans the file name, and if the file exists it adds a numeric increment to the end. If this isn’t working for you then please PM me and we can look into it.

       
Adrienne L. Travis's avatar
Adrienne L. Travis
213 posts
about 16 years ago
Adrienne L. Travis's avatar Adrienne L. Travis

Fred

I had actually noticed the adding-numbers-to-the-end; somehow i hadn’t noticed it was cleaning filenames. In any case, as far as adding numbers goes, what i’m asking for is something different: not ADDING numbers, but completely rewriting the filename on upload. So that my-uploaded-file.jpg becomes, say, 0000001.jpg . In a perfect world it would be a selectable scheme: either plain numbers, numbers with an admin-chosen prefix, a datestamp of some kind (either epoch timestamp or YYYY-mm-dd_HH-ii-ss, with a suffix if more than one file gets uploaded that second), or GUIDs.

There’s any number of reasons why you might want this feature for various sites, including a little extra security-through-obscurity, general cleanliness of the filesystem, datestamping of the files, etc, etc.

Huot’s file extension didn’t have a selectable scheme, but it did allow rewriting (it just used sequential numbers). Again, his had the setting per-upload-location, but i don’t personally care – if it’s a global setting that’s fine with me. If it’s per-location that’d just be gravy!

Adrienne

       
verveuster's avatar
verveuster
34 posts
about 16 years ago
verveuster's avatar verveuster

hi

fixed! fred gave me a solution

I think I just noticed where the issue is in your code. The error is being thrown by your code here: <?php $size = getimagesize(“{serie1}”); $width = $size[0]; $height = $size[1]; What’s happening is that {serie1} spits out a relative URI for the image, but getimagesize() needs an absolute path to the file. So in your case you would need to actually have the following: $size = getimagesize(“/home/www/web146/html{serie1}”); Try that and it should resolve your issue. - Fred
Hi i am using ff-matrix, ngen-fileField, imagesizer, floatbox and some php with getimagesize to build an image-gallery. i get the following error-message: Warning: getimagesize(/images/uploads/reportagen/_ASC5365.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/www/web146/html/admin/core/core.functions.php(637) : eval()’d code on line 196 here the code:


does anybody know what the problem could be?

thanks

Using:
EE v 1.6.7
Field Frame v.1.3.3
nGen File Field 0.9.10
       
Adam George's avatar
Adam George
283 posts
about 16 years ago
Adam George's avatar Adam George
MH File compatability: can now be a drop in replacement for single file uploads.

I love you.

That is all.

       
Oxygen Solutions's avatar
Oxygen Solutions
40 posts
about 16 years ago
Oxygen Solutions's avatar Oxygen Solutions

Buzzed this to Fred via email but if anyone has any advise would be appreciated

http://getsatisfaction.com/brandonkelly/topics/ff_matrix_and_ngen_file_field_mysql_error_1064

Thanks

       
Oxygen Solutions's avatar
Oxygen Solutions
40 posts
about 16 years ago
Oxygen Solutions's avatar Oxygen Solutions

just an update, ie8 wasn’t showing the upload location field so i didn’t no that i was supposed to be selecting it!

       
code72's avatar
code72
104 posts
about 16 years ago
code72's avatar code72

I’m also having memory issues. I’m using it for a photo gallery and it works absolutely awesome up until about 50 images when I get this error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 6356565 bytes) in /www/eh10997/public_html/kwsys/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 119

I’m on EngineHosting with a 64 meg PHP memory limit.

I’ve seen a few other post here with the same issue, but haven’t seen a definitive response on how to handle this. Is there any way to make the nGen FF extension more efficient? Any other solutions? The only thing I can think of is breaking the gallery up into multiple entries, but obviously that’s not the most client friendly solution.

       
Skyw1r3's avatar
Skyw1r3
5 posts
about 16 years ago
Skyw1r3's avatar Skyw1r3
I’m also having memory issues. I’m using it for a photo gallery and it works absolutely awesome up until about 50 images when I get this error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 6356565 bytes) in /www/eh10997/public_html/kwsys/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 119
I’m on EngineHosting with a 64 meg PHP memory limit. I’ve seen a few other post here with the same issue, but haven’t seen a definitive response on how to handle this. Is there any way to make the nGen FF extension more efficient? Any other solutions? The only thing I can think of is breaking the gallery up into multiple entries, but obviously that’s not the most client friendly solution.

The fix I’ve just applied is to comment out line 729-758 in /yoursystemfolder/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php relating to DirectoryIterator which, as martymix pointed out previously, removes the ‘choose an existing file’ feature.

       
First 24 25 26 27 28 Last

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.