Unable to save a field collection item without a valid reference to a host entity

I'm wanting to migrate a phone_no field into a field_collection called "field_address".

This script ought to work but some lines in the database cause it to bail.

$e = entity_load_single('node', 1130);
$add_id = $e->field_address[LANGUAGE_NONE][0]['value'];
$wrapper = entity_metadata_wrapper('field_collection_item', $add_id); 
$wrapper->field_phone_no->set(array($new_phone_string));
$wrapper->save();

Drupal 7 Admin Roles can't login, authenticated users can

I have a Drupal 7 site that has not been changed in a year.   Staff login to swap images and use the text editor, but that's about it for changes.  Something changed this week and now anyone with an admin role can't log in - but instead gets a generic error message instead.

When an authenticated user logs in, it goes to the user page (Drupal default) - that still works fine.

But I think there's a Rule set up, that says if you log in and have an admin role, display the admin content page instead (some page other than the default user page).   That's what isn't working.

Kitty Malware

After reading this article. was wondering if the latest core update 7.59 will block this out or is there anything that could block it from attack.

https://www.zdnet.com/article/hello-kitty-malware-targets-drupal-to-mine...

Problems with Content disappears then installing Drupal on multiple Servers

Hi,

We have a kind of strange problem.
We used to have a quite simple Webb structure with just  One Proxy -> One Varnish Frontend - > One Drupal Webb server and with One Memcache on the same server. Since this was not an ideal solution we decided to expand.

The new solution recommended by many was a loadbalancer (f5) -> a cluster with 2 Vanish front servers-> a cluster of 2 Drupal servers (Memcache on each server)  -> a cluster of 2 My Sql (Maria) Databases.  We build it up, everything looked fine during test, but now we have run into problems.

Student Lesson Pages

Hi,

I want to add a facility whereby students can create and add their own student lesson pages that are attached, linked or viewable from the main lesson unit/page as a way of adding to, and complimenting the main lesson material. Other students should then be able to choose and review other students' contributions as a way of enhancing the scope of their learning.

What I have not figured out yet is how best to implement this kind of learning exercise/strategy. The options that come to mind so far are:

proxy error in my application curl: (56) Received HTTP code 502 from proxy after CONNECT

Hi,

I am getting following proxy error in my application "curl: (56) Received HTTP code 502 from proxy after CONNECT" previously it was working fine, from yesterday on wards its not working. I have set the proxy curl_setopt($ch, CURLOPT_PROXY, $proxy);  but there is no use. If anyone face this type of issue, Please share the solution.

Regards,

Vijayan Natarajan

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x