Hello,
I refer to this very old post: http://drupal.org/node/313854
I seem to be having the exact same problem.
The entire site breaks with a fatal error "Error. The website encountered an unexpected error. Please try again later." when I add a new image field to a content type. It doesn't matter which content type it is, if I add the image field who site is down!
This has only just started happening. I have previously been able to add a new image field no problems. I have not upgraded / migrated or changed anything. This just suddenly started happening today. When I create a new image field the whole site goes down. If I delete the new field I just created whole site comes back again. Problem is I NEED to be able to create new image fields - this is essential.
Therefore this issue makes the entire site unusable as we cannot add new content.
Un-installing and re-installing the image module is not an option as it is a very large site with a great deal of image content on there. The existing image fields seem to be ok.
My technical knowledge of Drupal at this advanced level is limited especially as I did not set up this site myself. Rather I just manage it. Also I cannot find any error logs to indicate what is going on in more detail. Where are these located?
Questions Answered.............
CCK version: unknown
imagefield version: It says 7.4 next to the image module and the field module. This is not available in the dropdown above. Can't see any other version options.
permissions for your tmp and files directory. 777
download method (public or private files) Public but it doesn't even get up to this stage
imagefield configuration: not sure??? it is enabled with many different styles in there which are currently used on the site.
expected results: Image field to work and site not to go down.
the unexpected actual results: Image field seems to get added and then can choose more options but the whole site is down.
Steps to reproduce the problem: In admin create a new content type, manage fields, add an image field. Refresh the front end of the site. Error is seen.
This matter is really URGENT. Please help!!!
Comments
Comment #1
nicole2292 commentedOk I have figured out how to turn on the full error.
I am seeing on the front end of the site every time I add a new image field to the back end of the site:
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/newacton.com.au/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/newacton.com.au/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/newacton.com.au/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/newacton.com.au/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SET @@session.time_zone = '+00:00'; Array ( ) in date_sql_handler->set_db_timezone() (line 130 of /var/www/vhosts/newacton.com.au/httpdocs/sites/all/modules/date/date_api/date_api_sql.inc).
Comment #2
nicole2292 commentedI have now narrowed the problem down even further based on that error. If I have a date field (any format) and an image field in my new content type then the whole site breaks. If I delete either the date field OR the image field then site will be restored to normal and the remaining field will work as normal.
This I can work around by not using date fields (I will just use plain text fields instead), however this is not desirable and I don't imagine this problem is supposed to occur.
Comment #3
nicole2292 commentedCan anyone help with this? As it turns out I cannot add any new fields (not even a plain text field) to existing content types which have both the image field and a date field. If I do the whole site breaks.
Comment #4
nicole2292 commentedOk this problem is FAR FAR worse than I first thought. It seems that adding any new field of any type to either a new content type or an existing one breaks the entire website!!!
Errors received:
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
Warning: preg_match(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 1811 in ctools_cleanstring() (line 157 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/ctools/includes/cleanstring.inc).
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {menu_custom}; Array ( ) in menu_load_all() (line 237 of /var/www/vhosts/ourdomain.com/httpdocs/modules/menu/menu.module).
Debug:
'Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away'
in views_plugin_query_default->execute() (line 1380 of /var/www/vhosts/ourdomain.com/httpdocs/sites/all/modules/views/plugins/views_plugin_query_default.inc).
PLEASE HELP URGENTLY!!
Comment #5
quicksketchIt sounds like there's pretty clearly an issue with CTools here, rather than ImageField or another field. Doing a Google on your error, it turns up this existing issue: #1444006: Disallowed Unicode code point in CTOOLS_PREG_CLASS_ALNUM.
From what I can tell, the problem has been fixed in CTools but a new release hasn't yet been made. You can solve the problem either by applying the D6 patch in that issue, or using the 6.x-1.x-dev version until the next version comes out, or just wait for the next release.