Notice: Undefined index: node in workflow_tokens() - drupal-7

I get the above error notice in many pages on my drupal site.
Notice: Undefined index: node in workflow_tokens() (line 188 of
/home/lafune27/public_html/sites/all/modules/workflow/workflow.module).
Notice: Trying to get property of non-object in workflow_tokens()
(line 189 of
/home/lafune27/public_html/sites/all/modules/workflow/workflow.module).
Kindly help.
here's a

Looks like it might be a bug. There is an issue open for it on drupal.org. See comment #2 in http://drupal.org/node/1485816

Related

Drupal 7 - Theme Info Name Errors After Transferring Site to New Server

After transferring over a finished site to a new server, files/database and all, switching over the database settings in settings.php and running update.php I get the following errors:
Notice: Undefined index: name in block_menu() (line 146 of /home/nrsc2533/public_html/modules/block/block.module).
Notice: Undefined index: name in block_menu() (line 165 of /home/nrsc2533/public_html/modules/block/block.module).
Notice: Undefined index: name in system_menu() (line 647 of /home/nrsc2533/public_html/modules/system/system.module).
Notice: Undefined index: name in block_menu() (line 146 of /home/nrsc2533/public_html/modules/block/block.module).
Notice: Undefined index: name in block_menu() (line 165 of /home/nrsc2533/public_html/modules/block/block.module).
Notice: Undefined index: name in system_menu() (line 647 of /home/nrsc2533/public_html/modules/system/system.module).
I also lose most if not all of the items in the admin menu. I looked up the errors and they were all related to the following line of code:
'title' => check_plain($theme->info['name']),
This is a free theme that I customized, it is working fine on my test domain on my server, but not now that it has transferred. I did change the [theme].info file to reflect that it had been customized on the "name =" line. I checked online and found that the encoding may have been changed when I saved it, again strange since I had done this on the test domain and it seemed fine, so I changed the encoding to UTF-* without BOM and still to no avail. I have tried clearing the cache again via update.php and nothing changes. Any help will be GREATLY appreciated.

drupal 7 include site wide contact form in a node

I want add the Site Wide user form a node.
I used Drupal 7.
The site wide form Id-s: contact_site_form ( I get it from from.inc )
With alter I altered the form content.
in the node code:
php code:
print drupal_render(drupal_get_form('contact_site_form'));
Error message:
Notice: Undefined index: contact_site_form drupal_retrieve_form() függvényben (D:\wamp\www\online_recruitment\includes\form.inc 766 sor).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'contact_site_form' was given drupal_retrieve_form() függvényben (D:\wamp\www\online_recruitment\includes\form.inc 802 sor).
I found the answer:
http://drupal.org/node/237559#comment-780448 -> D6 way but worked in D7 as wel
php: require_once drupal_get_path('module', 'contact') .'/contact.pages.inc';
it worked like a charm.

getting error for AbstractMixedCollection.js?_dc=1343805300426

SCRIPT5007: Unable to get value of the property 'id': object is null or undefined
AbstractMixedCollection.js?_dc=1343805300426, line 147 character 10
Issue is resolved, there was some error in Extjs code. The semicolon was missing at the end of the sentence.

cakephp app error problem

I have the following function in my app_controller:
function beforeFilter() {
$this->set('lastThreePosts', $this->Blog->find_latest_posts());
}
I then use the variable 'lastThreePosts' that I have set in my layout. This works fine apart from on my 404 page where I get the following error:
Notice (8): Undefined index: lastThreePosts [APP\views\layouts\default.ctp, line 29]
I have made my own 404 page by created the file error404.ctp in my /views/errors/ directory.
So it seems when theres a 404 error the code in the controller doesn't get executed. Does anyone know how I can make it work?
Thanks
Phew! I found the answer here:
http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/

CakePHP "Warning: Cache not configured properly"

I am using CakePHP and getting the following error
Warning: Cache not configured properly. Please check Cache::config(); in APP/config/core.php in D:\PHP-SERVER\cheesecake\cake\libs\configure.php on line 663
Notice: Undefined variable: Route in D:\PHP-SERVER\cheesecake\app\config\routes.php on line 38
Fatal error: Call to a member function connect() on a non-object in D:\PHP-SERVER\cheesecake\app\config\routes.php on line 38
Any problem in the settings?
Which CakePHP version are you using?
The fatal error looks like a typo. Open the file D:\PHP-SERVER\cheesecake\app\config\routes.php and check what there is written on line 38. It looks like there is a letter missing.
It should be something along the lines of
Router::connect(...[whatever your route settings are]...);
and I guess in your file it says (note the missing r in Router)
Route::connect(...);
Did you do what the other error message said? Check the Cache::config call in app/config/core.php. You seem to have not properly set your cache configuration.
The default call looks like
Cache::config('default', array('engine' => 'File'));
If you changed that post the code-piece to figure out if something is wrong..

Resources