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) »
  • Random Smarty.class.php errors
Pages: [1]

Author Topic: Random Smarty.class.php errors  (Read 1597 times)

grumpybug

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: 2.5.4
  • MySQL version: 5.0.91
  • PHP version: 5.2.9
Random Smarty.class.php errors
May 18, 2011, 06:02:47 am
OK I'm getting random errors on my Contribution pages and I can't for the life of me work out where it is going wrong
as an example, on
http://www.adcc.asn.au/index.php?option=com_civicrm&task=civicrm/contribute/transact&reset=1&id=5

I'm getting
/home/public_html/adcc/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1971
 but only against some of the fields.

The interesting thing is when I load this page on the back end as a test drive it works fine. So I thought it might be a template issue, so I changed templates with no effect.

With the fields I can't anything in common. Eg some of the custom fields work and some don't, some are mandatory etc.

If anyone has any ideas it would be really appreciated.

grumpybug

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: 2.5.4
  • MySQL version: 5.0.91
  • PHP version: 5.2.9
Re: Random Smarty.class.php errors
May 18, 2011, 02:09:13 pm
As a work around a can probably label the missing fields by putting the title in as the default value, not pretty but better than nothing. So my next question is, is there a way to disable the warning messages from appearing.

I've edited my php.ini file to disable all error messages but the messages still appear

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Random Smarty.class.php errors
May 31, 2011, 02:44:38 am
I am having this same issue--it appears to be connected somehow to the fields marked "Required" in the custom profile, though it also appears in Edit Fields where the weight/order label should be. I will also try posting a new topic to see if that gets any responses.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Random Smarty.class.php errors
May 31, 2011, 02:55:07 am
Can you enable debug and backtrace ?

Should provide a bit more info about what's the issue with the templates
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Random Smarty.class.php errors
May 31, 2011, 03:35:48 am
Okay, I enabled de-bugging and backtrace, and came up with this:

Quote
backTrace

/home/mirrorst/public_html/sites/default/modules/civicrm/CRM/Core/Error.php, backtrace, 291
/home/mirrorst/public_html/sites/default/modules/civicrm/CRM/Contribute/Form/ContributionBase.php, fatal, 206
/home/mirrorst/public_html/sites/default/modules/civicrm/CRM/Contribute/Form/Contribution/Main.php, preProcess, 62
/home/mirrorst/public_html/sites/default/modules/civicrm/CRM/Core/Form.php, preProcess, 314
/home/mirrorst/public_html/sites/default/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 99
/home/mirrorst/public_html/sites/default/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/mirrorst/public_html/sites/default/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/mirrorst/public_html/sites/default/modules/civicrm/CRM/Core/Controller.php, handle, 284
/home/mirrorst/public_html/sites/default/modules/civicrm/CRM/Core/Invoke.php, run, 223
/home/mirrorst/public_html/sites/default/modules/civicrm/drupal/civicrm.module, invoke, 355
, civicrm_invoke,
/home/mirrorst/public_html/includes/menu.inc, call_user_func_array, 349
/home/mirrorst/public_html/index.php, menu_execute_active_handler, 17

I also attempted to upgrade to CiviCRM 3.4.1, but am not certain it upgraded correctly.

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Random Smarty.class.php errors
June 01, 2011, 01:06:03 pm
Any clues from the backtrace? I don't know enough to be able to deduce any steps to take to address the problem. We really wanted to kick off our (fiscal) year-end campaign as soon as possible, and need to resolve this issue on the Contributions page so people can make on-line contributions.

Thanks for any help or assistance anyone can provide!

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Random Smarty.class.php errors
June 02, 2011, 05:30:39 pm
FWIW, I eventually realized that the 3.4.1 tarball had not downloaded a complete file--I had somehow only received 5.3MB of the 9.2MB file. After downloading the complete tarball, I restored the old database, deleted all civicrm files, re-installed the 3.4.1 upgrade, and installed the php.ini referred to here:http://forum.civicrm.org/index.php/topic,19967.msg83481.html#msg83481

I then discovered that somewhere along the line, A2 had switched my php version from 5.3.4 back to 5.2.9. So, I changed the php version, emptied the caches and everything finally works fo rme now.

So I suggest double-checking your tarball to make sure you downloaded and installed a complete update, as well as your php version and install the php.ini file. Worked for me!!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Random Smarty.class.php errors

This forum was archived on 2017-11-26.