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 CiviMail (Moderator: Piotr Szotkowski) »
  • Help, Error message every second about event invitation
Pages: [1]

Author Topic: Help, Error message every second about event invitation  (Read 1271 times)

ylavoie

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
    • Regroupement de l'industrie électronique du Québec
  • CiviCRM version: 4.2.4
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Help, Error message every second about event invitation
October 17, 2012, 12:11:34 am
Hi,

My log files are filling my disk with an error every second. From what I can read, it is related to an email but nothing shows up in reports and/or database tables.

The messages are in french, so I paste the code also to help you follow.

How can I fix this? ???

Code: [Select]
Oct 17 02:54:51  [info] $Fatal Error Details = Array
(
    [message] => Nous ne pouvons charger la page demandée. Celle-ci requiert que votre navigateur accepte les cookies. Veuillez vérifier les préférences de votre navigateur et autoriser la reception de cookies (si ce n'est déja le cas). Si l'erreur persiste, contactez l'administrateur pour obtenir de l'aide.<br /><br />Administrateurs du site : Cette erreur peut indiquer que les utilisateurs accèdent à cette page en utilisant un domaine ou une URL autre que l'URL de base configuré. Exemple : l'URL de base est http://exemple.org, mais certains utilisateurs ont accès à la page via http://www.exemple.org ou un alias de domaine http://autreexemple.org.<br /><br />Erreur type : Impossible de trouver une clef de session valide.
    [code] =>
)


Oct 17 02:54:51  [info] $backTrace = #0 /var/www/rie/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(300): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/rie/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(251): CRM_Core_Error::fatal("Nous ne pouvons charger la page demandée. Celle-ci requiert que votre naviga...")
#2 /var/www/rie/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(160): CRM_Core_Controller->key("CRM_Core_Controller_Simple", TRUE, FALSE)
#3 /var/www/rie/administrator/components/com_civicrm/civicrm/CRM/Core/Controller/Simple.php(63): CRM_Core_Controller->__construct("Envoyer à un ami", TRUE, NULL, "CRM_Friend_Form_Event", FALSE, FALSE)
#4 /var/www/rie/administrator/components/com_civicrm/civicrm/CRM/Utils/Wrapper.php(87): CRM_Core_Controller_Simple->__construct("CRM_Friend_Form_Event", "Envoyer à un ami", NULL, FALSE, FALSE, FALSE, FALSE)
#5 /var/www/rie/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(193): CRM_Utils_Wrapper->run("CRM_Friend_Form_Event", "Envoyer à un ami", NULL)
#6 /var/www/rie/components/com_civicrm/civicrm.php(78): CRM_Core_Invoke::invoke((Array:4))
#7 /var/www/rie/components/com_civicrm/civicrm.php(18): civicrm_invoke()
#8 /var/www/rie/libraries/joomla/application/component/helper.php(383): require_once("/var/www/rie/components/com_civicrm/civicrm.php")
#9 /var/www/rie/libraries/joomla/application/component/helper.php(351): JComponentHelper::executeComponent("/var/www/rie/components/com_civicrm/civicrm.php")
#10 /var/www/rie/includes/application.php(197): JComponentHelper::renderComponent("com_civicrm")
#11 /var/www/rie/index.php(42): JSite->dispatch()
#12 {main}

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Help, Error message every second about event invitation
October 17, 2012, 10:19:58 am
Your error appears to be

We can not load the requested page. This requires that your browser accepts cookies. Please check your browser settings and enable the reception of cookies (if it is not already the case). If the error persists, contact the administrator for assistance. <br /> <br /> Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than base URL configured. Example: The base URL is http://exemple.org, but some users have access to the page via http://www.exemple.org or a domain alias http://autreexemple.org. <Br / > <br /> error: Unable to find a valid session key.

which is somewhat generic. :(

Do some features of the site work and others fail?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ylavoie

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
    • Regroupement de l'industrie électronique du Québec
  • CiviCRM version: 4.2.4
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Re: Help, Error message every second about event invitation
October 17, 2012, 02:50:29 pm
Thanks Hershel,

I know exactly what it says, my native language is french.
Everything seems to work but the HD space is dropping every second.

The question wasn't how does it translate but how do I get rid of those errors. Current CiviCRM log file is above 70Mb and growing.

I don't want to have to set up a CRON job to remove logfiles to keep my HD space.

Any suggestions?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Help, Error message every second about event invitation
October 17, 2012, 03:06:01 pm
Quote from: ylavoie on October 17, 2012, 02:50:29 pm
I know exactly what it says, my native language is french.

Oh, I knew that. I translated it for the rest of us. :)

Quote from: ylavoie on October 17, 2012, 02:50:29 pm
Everything seems to work but the HD space is dropping every second.

Not sure. Can you remove cached template files and perhaps upgrade CiviCRM? I don't know Joomla too well, but perhaps you can clear some caches there and/or reset the sessions table?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ylavoie

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
    • Regroupement de l'industrie électronique du Québec
  • CiviCRM version: 4.2.4
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Re: Help, Error message every second about event invitation
October 18, 2012, 06:44:44 pm
Upgrade to what? I am running 4.2.2 ???

After pulling the rest of my hairs, I decided to change a few lines of code to make error messages more explanatory. By passing a serialized version of the refused page structure downward from CRM_Utils_System::permissionDenied, I was able to get this:

Code: [Select]
Oct 18 02:09:12  [info] $Fatal Error Details = Array
(
    [message] => You do not have permission to access this page a:14:{s:2:"id";s:3:"219";s:9:"domain_id";s:1:"1";s:4:"path";s:24:"civicrm/event/manage/pcp";s:5
:"title";s:30:"Pages personnelles de campagne";s:15:"access_callback";a:2:{i:0;s:19:"CRM_Core_Permission";i:1;s:9:"checkMenu";}s:16:"access_arguments";a:2:{i:
0;a:2:{i:0;s:18:"administer CiviCRM";i:1;s:16:"access CiviEvent";}i:1;s:3:"and";}s:13:"page_callback";s:18:"CRM_PCP_Form_Event";s:10:"breadcrumb";a:3:{i:0;a:2
:{s:5:"title";s:7:"CiviCRM";s:3:"url";s:73:"/index.php?option=com_civicrm&amp;task=civicrm&amp;Itemid=339&amp;reset=1";}i:1;a:2:{s:5:"title";s:32:"Tableau de
bord des évènements";s:3:"url";s:79:"/index.php?option=com_civicrm&amp;task=civicrm/event&amp;Itemid=339&amp;reset=1";}i:2;a:2:{s:5:"title";s:23:"Gérer les év
énements";s:3:"url";s:86:"/index.php?option=com_civicrm&amp;task=civicrm/event/manage&amp;Itemid=339&amp;reset=1";}}s:12:"component_id";s:1:"1";s:6:"is_ssl";s
:1:"1";s:6:"weight";s:3:"540";s:4:"type";s:1:"1";s:9:"page_type";s:1:"1";s:14:"page_arguments";b:0;}
    [code] =>
)

Unserializing gives:
Code: [Select]
{
id = 219
domain_id = 1
path = civicrm/event/manage/pcp
title = Pages personnelles de campagne
access_callback = {
CRM_Core_Permission
checkMenu
}
access_arguments = {
{
administer CiviCRM
access CiviEvent
}
and
}
page_callback = CRM_PCP_Form_Event
breadcrumb = {
{
title = CiviCRM
url = /index.php?option=com_civicrm&task=civicrm&Itemid=339&reset=1
}
{
title = Tableau de bord des évènements
url = /index.php?option=com_civicrm&task=civicrm/event&Itemid=339&reset=1
}
{
title = Gérer les événements
url = /index.php?option=com_civicrm&task=civicrm/event/manage&Itemid=339&reset=1
}
}
component_id = 1
is_ssl = 1
weight = 540
type = 1
page_type = 1
page_arguments = b:0
}

Now:
  • I don't use PCP
  • access civiEvent is allowed for public
  • allowing (against my better judgement) administer CiviCRM to public doesn't change anything
  • having contributions or campaigns installed or not doesn't change anything
  • googling around shows others bitten by the same snake

Again, any suggestions?

Thanks,

Yves

P.S.: Saying WHICH page is refused could prove usefull for debugging. I suggest that CRM_Utils_System::permissionDenied be improved to provide ths information.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Help, Error message every second about event invitation
October 19, 2012, 03:35:10 am
Quote from: ylavoie on October 18, 2012, 06:44:44 pm
Upgrade to what? I am running 4.2.2 ???

Well, your forum profile says 4.0.8. Anyhow 4.2.4 was released yesterday so you could upgrade.

Aside from that, I'm afraid I don't know. Perhaps someone else will answer.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ylavoie

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
    • Regroupement de l'industrie électronique du Québec
  • CiviCRM version: 4.2.4
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Re: Help, Error message every second about event invitation
October 19, 2012, 08:26:28 am
Profile updated, I'll have to keep a note to update that.
4.2.4? Give me a break, I went to 4.2.2 a few days ago!  :D

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Help, Error message every second about event invitation
October 19, 2012, 09:25:07 am
The initial backtrace seems to indicate it's the send to a friend feature.

1) do you have events with that feature enabled?
2) if you want it enabled, you might need to adjust your permissions so anonymous can use it as well

Quote
Code: [Select]
#4 /var/www/rie/administrator/components/com_civicrm/civicrm/CRM/Utils/Wrapper.php(87): CRM_Core_Controller_Simple->__construct("CRM_Friend_Form_Event", "Envoyer à un ami", NULL, FALSE, FALSE, FALSE, FALSE)
#5 /var/www/rie/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(193): CRM_Utils_Wrapper->run("CRM_Friend_Form_Event", "Envoyer à un ami", NULL)


I'm not super sure if the log can be disabled or at least remove the backtrace in it. What's your debug configuration on civi?

Bonne chance

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

ylavoie

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
    • Regroupement de l'industrie électronique du Québec
  • CiviCRM version: 4.2.4
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.5.24
  • PHP version: 5.3.10
Re: Help, Error message every second about event invitation
October 19, 2012, 03:43:30 pm
Hi Xavier,

Thanks for the pointers.

I had an event with a send to a friend, but it is close and have been for many months. (july golf for members)
I'd be glad to adjust permissions and be done with that once and for all. Here's what is currently enabled:
Code: [Select]
Access Component
CiviCase: access my cases and activities
CiviCase: add cases
CiviContribute: make online contributions
CiviCRM: access CiviCRM
CiviCRM: access uploaded files
CiviCRM: add contacts
CiviCRM: profile create
CiviCRM: profile listings and forms
CiviCRM: profile view
CiviEvent: access CiviEvent
CiviEvent: register for events
CiviEvent: view event info
CiviEvent: view event participants
CiviMail: access CiviMail
CiviMail: access CiviMail subscribe/unsubscribe pages
CiviMember: access CiviMember
See anything missing?

Civi debugging is off. Log CAN be disabled, it is a simple matter to edit the code and remove annoying lines. But this doesn't solve anything. ;-)

Merci pour ton aide,

Yves

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Help, Error message every second about event invitation

This forum was archived on 2017-11-26.