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) »
  • Error opening contributionpage
Pages: [1]

Author Topic: Error opening contributionpage  (Read 1447 times)

Toeterniettoe

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.6.alpha4
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.41
  • PHP version: 5.3.25
Error opening contributionpage
May 31, 2012, 03:14:29 am
Hi!

I'm using CiviCRM to give visitors and registered users the possibility to subscribe for our youth organization membership. However, (I think) after updating CiviCRM recently, my contribution pages that only contain membership subscription, can't be found anymore when going to the url.

I can configure all data, but when going to the url (*domain*/civicrm/contribute/transact?reset=1&id=1), all browsers say the page can't be shown.
I cleared caches of Drupal and CiviCRM, no result.

Is this a known problem or only on my site, and if so, does anyone know what can cause this?

Gregory

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error opening contributionpage
May 31, 2012, 03:41:03 am
have you tried getting to that page via the manage contributions page? (e.g. http://drupal.demo.civicrm.org/civicrm/admin/contribute?reset=1)

Manage Contribution Pages > [find your page] > links > live page.

Let us know if you can / can't see it there and it should help narrow down the problem.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Toeterniettoe

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.6.alpha4
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.41
  • PHP version: 5.3.25
Re: Error opening contributionpage
May 31, 2012, 03:45:05 am
Forgot to mention that  :(

I've tried both options; live and test page, but get the same result. Internet Explorer shows a 500 error.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error opening contributionpage
May 31, 2012, 04:05:19 am
hmmm...

Do you have access to your php error logs? You might find something useful in there.  If you are on drupal, you can find that info by going to SITEROOT/admin/reports/dblog.  make sure you turn on php error logging here: admin/config/development/logging (ps. they are drupal 7 urls).

If you aren't on drupal 7, there are other ways to view the logs including error logs on your server.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Toeterniettoe

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.6.alpha4
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.41
  • PHP version: 5.3.25
Re: Error opening contributionpage
May 31, 2012, 04:16:55 am
Logging is on for all in Drupal 7, but I can't find any message in the log about the contributionpage. I tried to open the page again, refreshed and then looked at the log; nothing...

Can't set the logging for CiviCRM either; is still in BETA, but when I activate, I get an error. The error is logged, but (I suppose) that doesn't have anything to do with the contributionpage problem

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error opening contributionpage
May 31, 2012, 05:18:23 am
OK well other people might have encountered this problem before and know how to solve it.  In the absence of that, here is how i would go about trouble shooting...

A 500 is an Internal server error, i.e. something is going wrong on your server.  When things go wrong an error message is invariably logged.  An easy way / first step in solving the problem is finding the error message, and finding out what it says.

The easiest way to find it depends on your server set up and your skills (if you wanna give a bit more detail about that, would be helpful) but normally you'd have a web server error log (e.g. an apache error log at /var/log/apache2/error.log).  If you look in there at the time of the problem with a bit of luck you'll find a message that will help diagnose the problem.

Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Toeterniettoe

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.6.alpha4
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.41
  • PHP version: 5.3.25
Re: Error opening contributionpage
May 31, 2012, 05:42:08 am
Okay, I found the error:

[Thu May 31 13:11:13 2012] [error] [client IP_ADDRESS] PHP Warning: Unterminated comment starting line 45 in *HOST*/sites/all/modules/civicrm/CRM/Contribute/StateMachine/Contribution.php on line 45, referer: *DOMAIN*
[Thu May 31 13:11:13 2012] [error] [client IP_ADDRESS] PHP Fatal error: fatal flex scanner internal error--end of buffer missed in *HOST*/sites/all/modules/civicrm/CRM/Contribute/StateMachine/Contribution.php on line 45, referer: *DOMAIN*

So I went looking for the Contribution.php file that says:

Code: [Select]
<?php

/*
 +--------------------------------------------------------------------+
 | CiviCRM version 4.1                                                |
 +--------------------------------------------------------------------+
 | Copyright CiviCRM LLC (c) 2004-2011                                |
 +--------------------------------------------------------------------+
 | This file is a part of CiviCRM.                                    |
 |                                                                    |
 | CiviCRM is free software; you can copy, modify, and distribute it  |
 | under the terms of the GNU Affero General Public License           |
 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
 |                                                                    |
 | CiviCRM is distributed in the hope that it will be useful, but     |
 | WITHOUT ANY WARRANTY; without even the implied warranty of         |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
 | See the GNU Affero General Public License for more details.        |
 |                                                                    |
 | You should have received a copy of the GNU Affero General Public   |
 | License and the CiviCRM Licensing Exception along                  |
 | with this program; if not, contact CiviCRM LLC                     |
 | at info[AT]civicrm[DOT]org. If you have questions about the        |
 | GNU Affero General Public License or the licensing of CiviCRM,     |
 | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
 +--------------------------------------------------------------------+
*/

/**
 *
 * @package CRM
 * @copyright CiviCRM LLC (c) 2004-2011
 * $Id$
 *
 */

require_once 'CRM/Core/StateMachine.php';

/**
 * State machine for managing different states of the Import process.
 *
 */
class CRM_Contribute_StateMachine_Contribution extends CRM_Core_StateMachine {

    
/**

Unfortunately I don't know anything about coding, so I don't know if there is an error in it or where it is.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error opening contributionpage
June 01, 2012, 08:09:38 am
Good work :)

For some reason, that php file is only half complete.  Most likely this is due to an error when you were transferring it to your server (via ftp, maybe?).

You'll want to replace it with a full version.  You might want to replace the entire CiviCRM module (/sites/all/modules/civicrm) since you don't know if there are other incomplete files.

Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Toeterniettoe

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.6.alpha4
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.41
  • PHP version: 5.3.25
Re: Error opening contributionpage
June 01, 2012, 12:27:42 pm
Thx! It works fine now  :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Error opening contributionpage

This forum was archived on 2017-11-26.