Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After the latest Core update I am no longer able to insert an image from the file browser in the featured image box. I choose file browser, browse, choose an image, insert file and it just pops back to screen and says no file selected.
I am still able to insert an image if I just choose Upload. But then it does not get listed in the IMCE.
Comment | File | Size | Author |
---|---|---|---|
#18 | Featured.png | 148.81 KB | bezu60 |
Comments
Comment #1
bezu60 CreditAttribution: bezu60 commentedComment #2
cilefen CreditAttribution: cilefen commentedPlease post your browser console log and any watchdog and PHP errors thrown.
Comment #3
bezu60 CreditAttribution: bezu60 commentedI'm afraid I don't know what that means. I realize that is probably frustrating but I am a very basic user...mostly maintaining. I can update Core and modules but I never touch php or even css. I don't know what a console log is or how to get the information you need to help me.
This happened after a Core update last year as well and it was eventually recognized as a widespread issue and an update was provided that fixed it. This seems to be exactly the same issue also right after a Core update.
I hope someone will help me with this. If you need me to do something I need very clear instructions.
Comment #4
cilefen CreditAttribution: cilefen commentedThat's no problem. I actually don't know much about the IMCE module but a starting point for front-end issues is to capture a browser console log - you can open the log in Google Chrome this way. With the console open, do the thing that causes the error and hopefully some errors or messages will appear in the log. If any do, you can copy and paste them back here.
And for sure, if this turns out to be Drupal core's fault, we'll get this issue into the appropriate queue.
Comment #5
bezu60 CreditAttribution: bezu60 commentedSynchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
That's all it showed when I tried to insert an image using the file browser.
I'm pretty sure it's the Core update as that is what it was last time.
Comment #6
cilefen CreditAttribution: cilefen commentedCan you find the issue from last time?
Comment #7
bezu60 CreditAttribution: bezu60 commentedAll I know is https://www.drupal.org/node/2311943
Not much there... I just reported it was fixed with an update but I don't know how.
Comment #8
cilefen CreditAttribution: cilefen commentedBased on the timing, it could have been Drupal 7.30 https://www.drupal.org/drupal-7.30-release-notes, and of the issues there, the most likely is #2305017: Regression: Files or images attached to certain core and non-core entities are lost when the entity is edited and saved. The cause this time is not necessarily the same though.
What is logged in the the site log, /admin/reports/dblog, when this happens? Also, can you get any web server error log messages that happen?
Comment #9
bezu60 CreditAttribution: bezu60 commentedI just tried again and then looked at the log...nothing. And my web host says there is nothing appearing in the server logs. I went to them first and they cannot see any reason for this to be happening.
This is really frustrating!! Can you tell me what will happen if I bypass the file browser and just upload every time I want to add a featured image? Where are those images stored?
Comment #10
bezu60 CreditAttribution: bezu60 commentedAgain I tried on my sandbox and actually added the item. All the log says is Story added :test. Nothing about the image. I insert image...it pops back and simply says no file selected. Makes no sense!!
Comment #11
cilefen CreditAttribution: cilefen commentedI don't know much about IMCE. Are there any other IMCE or editing-related modules installed?
Comment #12
bezu60 CreditAttribution: bezu60 commentedI don't think so... are you telling me this can't be fixed?
Comment #13
cilefen CreditAttribution: cilefen commentedI am telling you that I don't know much about the IMCE. Maybe others will—especially the maintainer. I am trying to help. I am bumping this to critical bug, because IMCE is essentially not working.
Re: #10, that is normal logging. The fact that this worked on a test system indicates there is something different in your production environment. Could file permissions on the attached images have changed, for example? Have you tried with different files?
Re: #12, Are you sure you are not using an editor extension? It seems you need CKEditor or WYSIWYG to use IMCE. The problem could actually be with one of those.
Comment #14
bezu60 CreditAttribution: bezu60 commentedYou misunderstood...sorry my fault. It is not working on Testing environment either. I meant that I tried to add a test "Story" and the image still won't appear and the log says nothing. On the production environment I had not actually added the story...just tried to add the image. On testing I was able to finish the action. Still no image :(
Yes...we are using CKeditor but there has been no recent update to that module.
Some modules that have something to do with display:
Display Suite
Colorbox
Image Block
I tried updating Colorbox to see if that had any affect...nothing. It's the only update available that came after the Core update.
I usually wait for security updates to install.
Comment #15
bezu60 CreditAttribution: bezu60 commentedAlso... CKeditor is completely up to date with no recommended version available.
Comment #16
cilefen CreditAttribution: cilefen commentedI cannot reproduce the problem—I installed Drupal 7.38, CKEditor, and IMCE, and I am able to upload and insert images in CKEditor via IMCE.
You have mentioned "featured image" several times, including the issue title. What does that mean in this context?
I am putting this back down to major because its scope is limited to a specific configuration.
Comment #17
ufku CreditAttribution: ufku commentedMaybe you are using IMCE for FileField module. https://www.drupal.org/node/2466475
Comment #18
bezu60 CreditAttribution: bezu60 commentedContent types can contain Featured Images. This creates a Featured Image section. It gives you the choice to add an image in three ways:
Upload
File Browser
Remore URL
If you choose File browser it lets you browse the IMCE and choose an image or even upload to the IMCE and choose that image. That is what is not working.
I can still Upload from my computer and it will insert but I can't use the File Browser. I have attached an image.
Comment #19
cilefen CreditAttribution: cilefen commentedYour implementation of "Featured image" looks like a Drupal file field. That is a setup specific to your site. What about comment #17? I think that may apply in your case.
Comment #20
bezu60 CreditAttribution: bezu60 commentedHere is a list of all modules that are "on"
Administration menu (admin_menu)
Provides a dropdown menu to most administrative tasks and other common destinations (to users with the proper permissions).
Operations
Help
Administration menu Toolbar style (admin_menu_toolbar)
A better Toolbar.
Advanced Forum (advanced_forum)
Enables the look and feel of other popular forum software.
Operations
Permissions
Aggregator (aggregator)
Aggregates syndicated content (RSS, RDF, and Atom feeds).
Operations
Help
Always Visible (always_visible)
Allows administrators to override menu item visibility.
Author Pane (author_pane)
Gathers information from core and user related contrib modules and displays it in a template.
Backup and Migrate (backup_migrate)
Backup the Drupal database and files or migrate them to another environment.
Operations
Help
Block (block)
Controls the visual building blocks a page is constructed with. Blocks are boxes of content rendered into an area, or region, of a web page.
Operations
Help
Block Class (block_class)
Allows assigning CSS classes to blocks.
Permissions
Blog (blog)
Enables multi-user blogs.
Help
Book (book)
Allows users to create and organize related content in an outline.
Operations
Help
Calendar (calendar)
Views plugin to display views containing dates as Calendars.
Help
Calendar Block (calendar_block)
Highly customizable calendar block for various purposes
CCK (cck)
Miscellaneous field functions not handled by core.
Permissions
Chaos tools (ctools)
A library of helpful tools by Merlin of Chaos.
Permissions
Checklist API (checklistapi)
Provides an API for creating fillable, persistent checklists.
Operations
Permissions
Checklist API example (checklistapi_example)
Provides an example implementation of the Checklist API.
Configure
CKEditor (ckeditor)
Enables CKEditor (WYSIWYG HTML editor) for use instead of plain text fields.
Operations
Help
Color (color)
Allows administrators to change the color scheme of compatible themes.
Help
Colorbox (colorbox)
A light-weight, customizable lightbox plugin for jQuery 1.4.3+.
Configure
Comment (comment)
Allows users to comment on and discuss published content.
Operations
Help
Contact (contact)
Enables the use of both personal and site-wide contact forms.
Operations
Help
Contact Forms (contact_forms)
Creates individual contact pages from contact form categories.
Operations
Help
Contact Forms Translation (contact_forms_int)
Makes contact forms additions available for translation.
Content Access (content_access)
Provides flexible content access control.
Operations
Help
Content Access Rules Integrations (content_access_rules)
Integrates Rules with Content access. Allows to act on access events, conditions, and actions.
Content Migrate (content_migrate)
Migrate fields and field data from CCK D6 format to the D7 field format. Required to migrate data, can be disabled once all fields have been migrated.
Content translation (translation)
Allows content to be translated into different languages.
Operations
Help
Context (context)
Provide modules with a cache that lasts for a single page request.
Help
Context layouts (context_layouts)
Allow theme layer to provide multiple region layouts and integrate with context.
Help
Context UI (context_ui)
Provides a simple UI for settings up a site structure using Context.
Operations
Help
Contextual links (contextual)
Provides contextual links to perform actions related to elements on a page.
Operations
Help
Database logging (dblog)
Logs and records system events to the database.
Help
Date (date)
Makes date/time fields available.
Help
Date All Day (date_all_day)
Adds 'All Day' functionality to date fields, including an 'All Day' theme and 'All Day' checkboxes for the Date select and Date popup widgets.
Date API (date_api)
A Date API that can be used by other modules.
Date Context (date_context)
Adds an option to the Context module to set a context condition based on the value of a date field.
Date Migration Example (date_migrate_example)
Examples of migrating with the Date module
Date Popup (date_popup)
Enables jquery popup calendars and time entry widgets for selecting dates and times.
Configure
Date Repeat API (date_repeat)
A Date Repeat API to calculate repeating dates and times from iCal rules.
Date Repeat Field (date_repeat_field)
Creates the option of Repeating date fields and manages Date fields that use the Date Repeat API.
Permissions
Date Tools (date_tools)
Tools to import and auto-create dates and calendars.
Operations
Permissions
Date Views (date_views)
Views integration for date fields and date functionality.
Delta API (delta)
The Delta module is an advanced manipulation of the Theme Settings API to allow for customization/configuration of theme settings based on node types, context, or groups of paths.
Delta Blocks (delta_blocks)
Exposes a number of core Drupal elements as blocks.
Operations
Help
Delta UI (delta_ui)
The Delta UI provides a user interface to build and edit the contextual theme settings provided by the Delta module.
Permissions
Display Suite (ds)
Extend the display options for every entity type.
Operations
Permissions
Display Suite Extras (ds_extras)
Contains additional features for Display Suite.
Operations
Permissions
Display Suite Format (ds_format)
Provides the Display Suite Code format filter.
Configure
Display Suite Forms (ds_forms)
Manage the layout of forms in Display Suite.
Display Suite Search (ds_search)
Extend the display options for search results for Drupal Core or Apache Solr.
Configure
Display Suite UI (ds_ui)
User interface for managing fields, view modes and classes.
Permissions
Entity API (entity)
Enables modules to work with any entity type and to provide entities.
Entity tokens (entity_token)
Provides token replacements for all properties that have no tokens and are known to the entity API.
Feeds (feeds)
Aggregates RSS/Atom/RDF feeds, imports CSV files and more.
Permissions
Feeds Admin UI (feeds_ui)
Administrative UI for Feeds module.
Configure
Feeds Import (feeds_import)
An example of a node importer and a user importer.
Feeds Tamper (feeds_tamper)
Modify feeds data before it gets saved.
Permissions
Feeds Tamper Admin UI (feeds_tamper_ui)
Administrative UI for Feeds Tamper module.
Feeds XPath Parser (feeds_xpathparser)
Parse an XML or HTML document using XPath.
Field (field)
Field API to add fields to entities like nodes and users.
Help
Field Permissions (field_permissions)
Set field-level permissions to create, update or view fields.
Operations
Help
Field SQL storage (field_sql_storage)
Stores field data in an SQL database.
Help
Field UI (field_ui)
User interface for the Field API.
Help
File (file)
Defines a file field type.
Help
File Field Sources (filefield_sources)
Extends File fields to allow referencing of existing files, remote files, and server files.
Filter (filter)
Filters content in preparation for display.
Operations
Help
Flag (flag)
Create customized flags that users can set on entities.
Operations
Permissions
Flag actions (flag_actions)
Execute actions on Flag events.
Configure
Forum (forum)
Provides discussion forums.
Operations
Help
Google Analytics (googleanalytics)
Allows your site to be tracked by Google Analytics by adding a Javascript tracking code to every page.
Operations
Permissions
Help (help)
Manages the display of online help.
Help
Image (image)
Provides image manipulation tools.
Operations
Help
Image Block (imageblock)
Provides a file field in block configuration form for displaying an image in a block.
IMCE (imce)
An image/file uploader and browser supporting personal directories and user quota.
Operations
Permissions
Job Scheduler (job_scheduler)
Scheduler API
Libraries (libraries)
Allows version-dependent and shared usage of external libraries.
List (list)
Defines list field types. Use with Options to create selection lists.
Help
Locale (locale)
Adds language handling functionality and enables the translation of the user interface to languages other than English.
Operations
Help
Menu (menu)
Allows administrators to customize the site navigation menu.
Operations
Help
Module filter (module_filter)
Filter the modules list.
Operations
Permissions
Nice Menus (nice_menus)
CSS/jQuery drop-down, drop-right and drop-left menus to be placed in blocks
Configure
Node (node)
Allows content to be submitted to the site and displayed on pages.
Operations
Help
Node clone (clone)
Allows users to clone (copy then edit) an existing node.
Operations
Help
Node Convert (node_convert)
Converts one or more nodes between different node types.
Operations
Help
Node Reference (node_reference)
Defines a field type for referencing one node from another.
Node Revision Delete (node_revision_delete)
Track and prune node revisions.
Operations
Help
Nodeblock (nodeblock)
Enables use of specified node types as custom blocks.
Permissions
Nodequeue (nodequeue)
Create queues which can contain nodes in arbitrary order
Operations
Permissions
Number (number)
Defines numeric field types.
Help
Omega Tools (omega_tools)
Provides additional functionality for the Omega Theme.
Options (options)
Defines selection, check box and radio button widgets for text and numeric fields.
Help
Path (path)
Allows users to rename URLs.
Operations
Help
PHP filter (php)
Allows embedded PHP code/snippets to be evaluated.
Operations
Help
References (references)
Defines common base features for the various reference field types.
Rules (rules)
React on events and conditionally evaluate actions.
Operations
Help
Rules UI (rules_admin)
Administrative interface for managing rules.
Search (search)
Enables site-wide keyword searching.
Operations
Help
Simple Meta (simplemeta)
The Simple Meta module provides a flexible method to set meta tags, such as page title, keywords and description for current website page.
Operations
Permissions
Site map (site_map)
Display a site map.
Operations
Permissions
Smartqueue taxonomy (smartqueue)
Creates a node queue for each taxonomy vocabulary
Social media (socialmedia)
Example module to demonstrate module socialmedia.
Operations
Help
Statistics (statistics)
Logs access statistics for your site.
Operations
Help
Syslog (syslog)
Logs and records system events to syslog.
Operations
Help
System (system)
Handles general site configuration for administrators.
Operations
Help
Taxonomy (taxonomy)
Enables the categorization of content.
Operations
Help
Text (text)
Defines simple text field types.
Help
Trigger (trigger)
Enables actions to be fired on certain system events, such as when new content is created.
Operations
Help
Update manager (update)
Checks for available updates, and can securely install or update modules and themes via a web interface.
Operations
Help
User (user)
Manages the user registration and login system.
Operations
Help
Video Embed Field (video_embed_field)
Expose a field type for embedding videos from youtube or vimeo.
Operations
Permissions
Viewfield (viewfield)
Defines a field type to display a view.
Views (views)
Create customized lists and queries from your database.
Permissions
Views block area (views_block_area)
Exposes all blocks as a views area.
Views Bulk Operations (views_bulk_operations)
Provides a way of selecting multiple rows and applying operations to them.
Views Link Area (views_linkarea)
A Views 3 area plugin to allow links as headers and footers for views.
Views UI (views_ui)
Administrative interface to views. Without this module, you cannot create or edit your views.
Configure
Webform (webform)
Enables the creation of forms and questionnaires.
Operations
Help
Widgets (widgets)
Enables easy management of code snipets like Twitter, Facebook and Google+ buttons.
Operations
Help
Comment #21
bezu60 CreditAttribution: bezu60 commentedAlso... it is a different issue because that says only the preview is missing but I am also unable to insert the image into the content on the site.
Comment #22
bezu60 CreditAttribution: bezu60 commentedMaybe it is the file field module but I don't know how to apply the patch. Will there be an update soon that will include that fix?
Comment #23
ufku CreditAttribution: ufku commentedIt is the filefield sources module. You can move this issue there or consider switching to IMCE for Filefield module.
Comment #24
cilefen CreditAttribution: cilefen commentedYou have IMCE activated as an upload method of the "Featured image" field via the filefield_sources module. I set that up on a file field and was able to insert a previously-uploaded image.
Comment #25
cilefen CreditAttribution: cilefen commentedThis should me marked "Closed (duplicate)" of #2466247: Drupal core 7.36 broke Filefield Sources Ajax upload previews in that case.
Comment #26
cilefen CreditAttribution: cilefen commentedRe #24 - there was no preview image though.
Comment #27
bezu60 CreditAttribution: bezu60 commentedI'm not convinced. It only happened after the last Core update. And it is not that I can't upload files. I can do that easily enough. It is that I can't grab one for featured image.
You say you can do it when you duplicate my configuration?
Comment #28
cilefen CreditAttribution: cilefen commentedI duplicated it as best I could tell: by adding IMCE as one of the filefield sources on a file upload field.
Comment #29
bezu60 CreditAttribution: bezu60 commented#23 I tried adding that module and checking allow user to add file from IMCE but same thing. I can go through the motions but it just won't add the image. Same behavior as without that module.
I can even upload a new image. But I can't insert into Featured Image from the IMCE
Comment #30
bezu60 CreditAttribution: bezu60 commentedAlso... when I simply Upload a new image using the Upload button the preview appears and all works fine. It is ONLY when I choose file browser and try to add an image from there. Which is exactly what happened a year ago until they fixed it with a new Core update.
Comment #31
bezu60 CreditAttribution: bezu60 commentedCan anyone tell me what would happen if I simply upload images as I need them (instead of using the file browser) until this issue is fixed? And where are the images that I upload stored?
Comment #32
cilefen CreditAttribution: cilefen commentedThere are defaults, but the configuration of the given file field may have changed them. This should help: https://www.drupal.org/documentation/modules/file
Comment #33
bezu60 CreditAttribution: bezu60 commentedOkay...so instead of going to my images directory it goes to my files directory. Is it okay to let that happen for several weeks until this is fixed with an update?
Comment #34
cilefen CreditAttribution: cilefen commentedThat is more of a question for yourself, your group, and your system admins.
Comment #35
bezu60 CreditAttribution: bezu60 commentedI used Patch manager module. It worked!!! I'm so excited. It is patch from file field sources issue.#24
Can't believe it!!
Comment #36
madelyncruz CreditAttribution: madelyncruz commentedSame issue here. The image was unable to insert using "File Browser" but able to browse files. If the image values is set unlimited, then the "File Browser" is working properly.
Comment #37
ufku CreditAttribution: ufku commentedThis is dulicate of #2466475: Drupal core 7.36 broke IMCE for FileField Ajax upload previews for imce_filefield users.
filefield_sources users should open an issue in the related issue queue.
Comment #38
jpbis CreditAttribution: jpbis as a volunteer commentedHi, i lost at least one hour trying to figure this out. Finally I tried the old trick of just trying in another web browser. It worked. So, i hope this helps others.
bye.