[FOUND MY ANSWER] Fatal error on using "kpr($variables)" in template.php


Whenever I use the following code "kpr($variables);" in my template.php ... I get the fatal error below:

Fatal error: Cannot unset string offsets in /home/content/71/7996771/html/local/sites/all/modules/devel/krumo/class.krumo.php on line 610

The kpr variables loads, some of the site content like menu's etc also load but CSS files do not get loaded and therefore everything is unformatted without the CSS.

Unable to persist the form values inspite of using form_set_error method as a part of validation

Hey All,
I have a form in my custom module that accepts user values for a project creation action. This is the image http://imageshack.us/f/198/dateclear.jpg/
The issue iam facing is that when the code enters
the block to validate the date entered (dates older than current date are not allowed), the user entered values for the Project Name, Po reference , etc.(marked in the image).getvanished as well. I would want them to persist so that the user need not re enter all the values just due to the date error.
Now i have the function 'create_freeway_project' which is responsible for the page elements. This is the code

function create_freeway_project() {
drupal_add_js(drupal_get_path('module', 'freeway') . '/js/dashboardscript.js');
$node = node_load(arg(1));
$form = array();

$arrayForSendTranslation = array();
$arrayForSendTranslation = credentialProvider();
$finalFunctionUserName = $arrayForSendTranslation[0];
$finalFunctionPassword = $arrayForSendTranslation[1];

$parts = parse_ini_file('sites/all/modules/freeway/urlconfig.ini');

$LoginClient = new SoapClient($parts['part1'], array("trace" => 1));
$ServicesLink = new SoapClient($parts['part2'], array("trace" => 1));

$defaultRef = 'My Reference';

$form['title'] = array(
'#type' => 'textfield',

Views On Profile

I'm playing around with Profiles and Views.

I have created a Views block in which I intend to show a list of nodes created by the person who owns the profile. Other users can go there and see a list of the nodes that user has created.

How do I filter that in Views?

Any help is appreciated!

Trying to get property of non-object after deleting a mini panel

After deleting an object under mini panels the following error shows up on the main page of the site.

Notice: Trying to get property of non-object in _panels_mini_panels_mini_content_type_content_type() (line 54 of /var/www/sites/all/modules/panels/panels_mini/plugins/content_types/panels_mini.inc).

How do you get rid of this message?



hi everybody ,
i devlopped a widget to select cities and i integreted it to a new a content type..all thing seem to be fine but when i try to use SEARCH API i dont found this field in the liste of the fields when i want to define the index
i tried "Add related fields" below but cant found it
i already integred a widget to select a country that i could see it in the list of the fields when i define the index in search API...
so why my widget dont appear?...and how can i do it.?...should i impilment some other hook to my widget to do this..?

Noindex, Follow for Taxonomy Terms. Can it be done?

Hi - title covers it really. I'd like my Drupal site to serve:


For each and every page served by Taxonomy terms. I've tried the Meta tags module, but that doesn't seem to give me control of the robots meta tag.


Subscribe with RSS Subscribe to RSS - Drupal 7.x