Error when adding a new cck field - drupal

For some reason I get error on lots of pages after adding a simple text field to a content type. And error on pages that doesn't use the content type, and hasn't any relation to the modified content type.
The content type is just a regular form where customers can add some simple data that is later displayed in a view.
The new field is addad to a contenttype that already has som data stored with it.
In the log I found this error message:
Warning: preg_match() [function.preg-match]: Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /home/u/u4144602/www/profiles/nodestream/modules/ctools/includes/cleanstring.inc).
Does anyone know?
It's a drupal 6 installation, a nodestream distribution.

I too got this problem earlier.I've replaced
'\x{a80b}\x{a823}-\x{a82b}\x{d800}-\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}'.
with
'\x{a80b}\x{a823}-\x{a82b}\x{e000}-\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}'.
Hope this link might help u... :)
http://drupal.org/node/1878284
http://drupal.org/node/1444006

Related

Wordpress + Contact Form 7: One or more fields have an error (treating first field as empty even when it is filled)

I am asking this question after I found the answer so that no one else spends much time debugging it in case the same happened to them (my googling didn't yield many useful results)
In short, some of my CF7 forms suddenly stopped submitting and it was giving me the orange error about empty fields. It was also flagging the first field in the form as being empty even though it was filled.
Nothing was being logged in Flamingo. Recaptcha was working properly. I attempted to fix the permalinks. Nothing was fixing the issue.
Turns out it was a problem with how some field codes were written inside the HTML of the form. The type of error will be unique, but in general, make sure your fields are written properly and that there are no commented parts in the form HTML.
In my case, the error was as follows:
I was using the following code for some select fields:
And to be written properly they had to be as such:
That was it for me.

Errors in Drupal 7 - Trying to get property of non-object in taxonomy_overview_terms()

I would love to get some help here. I enabled the forums module which is part of Drupal core. When I go to add a container, I get the following error:
Notice: Trying to get property of non-object in taxonomy_overview_terms() (line 279 of D:\Development\drupal\sites\all\modules\taxonomy\taxonomy.admin.inc).
Notice: Trying to get property of non-object in taxonomy_overview_terms() (line 403 of D:\Development\drupal\sites\all\modules\taxonomy\taxonomy.admin.inc).
Notice: Trying to get property of non-object in taxonomy_overview_terms() (line 405 of D:\Development\drupal\sites\all\modules\taxonomy\taxonomy.admin.inc).
I have tried to delete the tables and reinstall the module. I have the same module enabled on another one of our sites (which is identical in structure). But I do not get these errors on it. Anyone know how to fix this?
Thanks!
FWIW I debugged a similar issue and found that the 'forum' vocabulary nav variable (forum_nav_vocabulary) was not set in my installation, and that just plain breaks things. In the forum module there are a number of calls to variable_get('forum_nav_vocabulary', ''), but unfortunately if it is not set, using an empty vid has not been properly catered for.
If you set it, make sure to use the vid and not the machine name (i.e. the number, not the name). You will need to do this with drush, via the db, or using devel module's variable editor.

Remove Drupal Commerce Empty Products

I am getting empty products in my views recently after the first few rounds of having a crawler import the data for the products. Unfortunately, after deleting all but two products that existed beforehand, These "empty" products still exist. I also made sure there were no extra variation types, and cleared the commerce_line_item table. Does anybody know where I can find and get rid of these nameless products?
Here is a photo for reference: http://i.imgur.com/bISsCmB.png [1]
I noticed this title (this product was created by the) was able to be selected and edited. This is the only title that shows up: http://i.imgur.com/xwZKRBJ.png
Unfortunately, after trying to edit it, this is the error I get: http://i.imgur.com/e0sbwsT.png
After running #Clive's script, I couldn't flush the cache and I received these errors:
Notice: Undefined index: label in entity_views_field_definition() (line 191 of /home/accuairt/public_html/profiles/commerce_kickstart/modules/contrib/entity/views/entity.views.inc).
Notice: Undefined index: search_api_views_fulltext in views_handler_filter->accept_exposed_input() (line 1260 of /home/accuairt/public_html/profiles/commerce_kickstart/modules/contrib/views/handlers/views_handler_filter.inc).
Notice: Undefined index: table in entity_views_plugin_row_entity_view->init() (line 20 of /home/accuairt/public_html/profiles/commerce_kickstart/modules/contrib/entity/views/plugins/entity_views_plugin_row_entity_view.inc).
SearchApiException: Unknown or invalid item type node. in search_api_get_datasource_controller() (line 1506 of /home/accuairt/public_html/profiles/commerce_kickstart/modules/contrib/search_api/search_api.module).
STATUS MESSAGE Operating in maintenance mode. Go online.
The website encountered an unexpected error. Please try again later.
I restored a backup from a few hours ago to get the site back where it was.
edit: 12/18 Still looking for an answer. There has to be a table I can clear to get rid of this information.
If you know for definite that all products without a title should be deleted you can try something like this:
$query = new \EntityFieldQuery();
$query->entityCondition('entity_type', 'commerce_product')
->propertyCondition('title', '');
$results = $query->execute();
if (!empty($results['commerce_product'])) {
commerce_product_delete_multiple(array_keys($results['commerce_product']));
}
It might be wise to inspect the results of the query before you run the delete function, just to make sure you're not deleting anything you want to keep by mistake.

Wordpress error when sending comment

I'm using the default comments template, on my own self-built theme. When I send a comment I get the following error message:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_set_comment_cookies' not found or invalid function name in /home/mattator/public_html/wp-includes/plugin.php on line 403
Warning: Cannot modify header information - headers already sent by (output started at /home/mattator/public_html/wp-includes/plugin.php:403) in /home/mattator/public_html/wp-includes/pluggable.php on line 881
couldn't find a call to the funciton 'wp_set_comment_cookies' anywhere in the code. It is noteworthy that despite the error message the comment is being sent properly. I also tried to disable all plugins but the problem persists.
Any ideas would be appreciated.
May be you have some extra white space before
<?php
tag in starting of a theme file
Thanks
Well, I experimented a little bit, and as turns out the problem was a call to the function "nocache_headers()", in Line 18 of the file "wp-comments-post.php" which lies at WP root directory.
I deleted it, and voila, everything works. Not sure why though.

Drupal, broken view, need help

I am getting strange problem.
When I am listing some content type, intead of data I am getting 'n/a' string.
I listed views, and on one view I have 'Warning - Broken view!' message.
I can't edit / delete this view because it always redirect to front page.
I checked my logs and all I see is repeating:
# warning: Invalid argument supplied for foreach() in /home/www/testetelgsm/www/includes/common.inc on line 3364.
# warning: Invalid argument supplied for foreach() in /home/www/testetelgsm/www/modules/cck/content.module on line 1284.
# warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/testetelgsm/www/includes/common.inc on line 3361.
How can I delete / edit this view?
Could somebody help?
Regards
You need to go to the views admin page at: admin/build/views. Here you can find a list of all your views and edit/delete them.
It sounds like you are trying to pull something that doesn't exist anymore like a deleted cck field. Anyways, if it doesn't work to edit it, try to recreate it.
You can make views into features with the features module. That will define the views in a custom module that is generated for you, and make the view defined in code. That will make it possible to restore it, if it gets edited.

Resources