CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • "Cryptic" Error message received on page load?
Pages: 1 [2]

Author Topic: "Cryptic" Error message received on page load?  (Read 4213 times)

paulmassey

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.9
  • MySQL version: not sure
  • PHP version: not sure
Re: "Cryptic" Error message received on page load?
November 05, 2011, 11:54:19 am
I don't know much about PHP, but I've been looking at this problem (as it is a big problem for us) and I don't think the problem lies with PHPIDS. It looks like the error is caused by filters that are passed to the PHPIDS module which are now considered erroneous by pcre - PHPIDS just seems to be passing them on. Here's an example filter that causes the compilation error:

<snip> I wasn't allowed to post the string because the forum thought it was an external link! I've posted the filter example in the PHPIDS thread that vandalf linked to.

I'll continue trying to hunt it down, but if anyone knows anything about the format for these preg_match() filters, or anything else that would be helpful, please add to the thread...

paulmassey

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.9
  • MySQL version: not sure
  • PHP version: not sure
Re: "Cryptic" Error message received on page load?
November 05, 2011, 01:35:19 pm
The problem seems to be related to filter 46 in default_filter.xml. When I remove this filter then the compilation errors seem to disappear - a syntax error in the filter.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "Cryptic" Error message received on page load?
November 06, 2011, 09:49:28 am

can u please follow up on this with the php-ids follks. will help both the projects :)

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

paulmassey

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.9
  • MySQL version: not sure
  • PHP version: not sure
Re: "Cryptic" Error message received on page load?
November 07, 2011, 01:05:03 am
OK, I've added a message to the PHP-IDS thread, but there seems to be very little activity in that forum. In the meantime, is there somewhere I should put a copy of the default_filter.xml with filter 46 removed - in case it is useful to anyone else?

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: "Cryptic" Error message received on page load?
November 08, 2011, 02:42:06 am
It seems that this was solved on our site since our webhost upgraded pcre to version 8.20 (skipping 8.13).

From the news page for pcre (http://pcre.org/news.txt):
"...also fixes an unfortunate bug that was introduced in 8.13"
My webhost thinks this might be referring to the problem that we've seen on our site.

I'm not sure what or if this problem of mine was indeed a part of what was fixed in version 8.20, but for those interested, here is the changelog: http://pcre.org/changelog.txt.

We believe that the first bug mentioned in the changelog was causing the problem on our site, and that the fix for this fixed the problem for us.
Further, the problem described at https://bugs.archlinux.org/task/25637, is now "closed" and marked as fixed in pcre-8.13-2 (a beta?).

I've not seen the error again after the upgrade of pcre, so it seems to be fixed.

Millions of thanks to my brilliant webhost (minhost.no) and you people here at forum.civicrm.org for figuring this one out for me so quickly!

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • "Cryptic" Error message received on page load?

This forum was archived on 2017-11-26.