We are running Drupal 7. When a user uploads a new image, the image saves and displays correctly.
When a user logs out, the image disappears from the profile, but remains in the images folder.
We traced the problem back to logout action somehow setting the "picture" column in the users table to 0 immediately after logout.
The trouble is, I cannot find this where in the code this happens. I found a user_logout function, but that does not do it.
This is fixed. We had to update the avatar modules and the reference to the database.
Related
I've inherited the content upkeep on a local non-profit's website. The site is running Drupal 7.71. There's an employee/staff section on the site, and the admin interface has the ability to add new employees, and to modify the content of current employees. My issue is with the "Select Media" button in the interface that allows us to add an employee photo. When it was working properly, clicking on that button launched a modal overlay that allowed me to upload a new image, or choose a pre-existing one. Once I did that the modal would vanish, and I'd be back to the original employee admin form, with the selected image added.
Now for some reason when I click on the "Select Media" button the modal appears for a split second, but then it changes to a full HTML page, as if the browser's location.href has changed to the URL of the modal. I can pick/upload an image, but then have to navigate back to the original employee entry page, and when I do it does not show that any image has been selected.
As far as I know I have made no changes to the site that could be causing this change in behavior. I specifically have not done any updates to the Drupal install or any of the modules (I don't want to attempt any sort of code updates until we have a robust backup/rollback system in place). I don't see any JavaScript errors in the console when attempting to use this functionality, and the error occurs in multiple different browsers, so I don't think it's browser related.
Anyone have any idea what's going on, and how to fix it?
Send button in Contact form stopped working in Blogger
I have two separate Contact form gadgets in my blog. All of a sudden the Send button stopped working. After entering all the fields, when I click on it nothing happens. Other people have told me the same thing.
I didn't change anything. Neither of them work. One is available in the desktop menu bar as Contact and the other is at the bottom in the footer. They don't work in mobile or desktop.
I deleted the code and recreated but Send button still not working. It is the same code that worked before.
Please help. My website is www.tutorhubllc.com.
I am unable to paste the code here at I am using
Thanks
Your contact form gadget does not contain a form element.
Contact form should have a form element with a proper action attribute. The form tag is used to collect user input and specifies where to send the data when submitting.
Try to add another fresh gadget from your control panel layout.
Is it normal that LinkedIn's company follow button opens a blank page? The button comes from a javascript snippet provided by LinkedIn.
I tried on Chrome and Edge, and nothing happends (only a blank page). I think the problem comes from LinkedIn because they have the same problem at https://developer.linkedin.com/plugins/follow-company
Try to make a button and click on it.
Kind regards
The LinkedIn follow button widget works but it shows an odd behavior of directing you to a blank page. Notice the (not so obvious) +1 in the follow count in the widget. This happens for both logged in and not logged in LinkedIn users.
If you are not logged in to your account in LinkedIn and clicks on the follow button on a different tab/window, a popup will show up and prompts you to log in to LinkedIn. After logging in, it will open a new blank page.
But if you are already logged in to your account and clicks on the follow button, it will just open a new blank page.
I have new Drupal. I am not sure about Drupal work with add page, article or blog.
This error shows when I add new page click on "preview" button then click "save" button or click on delete link.
Here error message
"The content on this page has either been modified by another user, or
you have already submitted modifications using this form. As a result,
your changes cannot be saved."
Why Drupal not allow Save content after I preview?
Please kindly help with this problem.
Thanks
This message is caused when either (1) two users access the edit page and one user saves changes before the other user gets a chance or (2) when a user edits content, saves it, and clicks the back button to get back to the edit page.
Solution: From Home » Administration » Configuration » Development click on Clear all caches button.
I'm in the middle of creating a Drupal site. It already has lots of content. This morning I found out that the "Save" button has now gone missing from my Page and News nodes. Users now have to click Preview before the Save button appears (both for creating new content and editing existing content). It was fine yesterday and I'm not sure what has changed. Can anyone help me to restore the Save button?
Many thanks
Check under admin/content/node-settings if you set the preview to "required", that would cause this behaviour. You can also try to emtpy all caches.
in Drupal 8 , preview mode can be set for each content types,e.g for articles :
/admin/structure/types/manage/article
If set to required the save button will appear only after previewing the content and returning to edit mode.