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) »
  • Error with the Mailing List Subscription
Pages: [1]

Author Topic: Error with the Mailing List Subscription  (Read 438 times)

karo3

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3
  • MySQL version: 5.5
  • PHP version: 5.4.4
Error with the Mailing List Subscription
September 30, 2014, 11:05:07 am
Hi everyone,

I have a Contact Group with the type Mailing List on public. I have the Joomla permission set and I have CiviMail active. Has someone an idea why I get the following error:

"0 -
Sorry but we are not able to provide this at the moment.
We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site adminstrator for assistance.

Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.

Error type: Could not find a valid session key."

On my other test-site it works correctly. I testet the contribution and the event page and they have no errors. I really try to find a solution, something I forgot or a forum entry.

You are my last hope! Please help!

I'm thankful for every tip I get.

I use Joomla 3.3 and CiviCRM 4.5

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Error with the Mailing List Subscription
October 02, 2014, 05:57:32 am
8 times out of 10 it is exactly what the message suggests, you are visiting the page using a URL that doesn't match the base URL.  The URL that you are using to visit the form, does it match the base URL you set up exactly (including either having or not having www at the beginning)?

Other than that there really isn't enough information for me to make an educated guess, if you can tell me a bit more about how you have this set up and/or show me a link I might be able to give more guidance.
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

karo3

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3
  • MySQL version: 5.5
  • PHP version: 5.4.4
Re: Error with the Mailing List Subscription
October 03, 2014, 02:59:34 am
Thanks for your responding!

In the settings (system settings -> Cleanup Caches and Update Paths) the base URL is: http://s351552314.online.de/
And the site which don't work is: http://s351552314.online.de/medien/newsletter.html
So it looks like the base URL is correct.

When I switch the SEF URLs off, the URL become: /index.php?option=com_civicrm&task=civicrm/contribute/transact&Itemid=168&option=com_civicrm&Itemid=168&view=MailingList
On my test site (which hadn't an error) the URL was: /index.php?option=com_civicrm&view=MailingList&Itemid=111

So perhaps he generate the URL wrong???

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Error with the Mailing List Subscription
October 03, 2014, 05:25:19 am
The URL that I get when I visit that second URL is http://s351552314.online.de/index.php?option=com_civicrm&task=civicrm/contribute/transact&Itemid=168 which is a correct URL (although it points to a contribution page).  The one from your test site actually looks incorrect since it is missing the task= part of the query string (and the Itemid just refers to the Joomla menu item that you have set up so that has the potential to be different). 

Your second url has medien in the URL, is that the sub folder that you have Civi installed under?  If so, that should be a part of the base URL.  Also, you are going to want to check the civicrm.settings.php files (under Joomla there are 2 copies of the file) which are in /administrator/components/com_civicrm/ and /components/com_civicrm/ because those are the place where the base URL is defined (the one you saw above is actually created based on the Resource URLs, not actually what is stored in the files).  You are looking for a line similar to this:

Quote
define( 'CIVICRM_UF_BASEURL'      , 'http://localhost/joomdemo/administrator/' );

That example is from the administrator folder version of the file, the one in the regular components folder will be the same but without the /administrator/ at the end.  If you have Civi installed in a subdirectory of the site, that should be reflected in the URL.
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

karo3

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3
  • MySQL version: 5.5
  • PHP version: 5.4.4
Re: Error with the Mailing List Subscription
October 03, 2014, 07:42:35 am
Thank you for your help! After the error doesn't want to go away I deinstalled CiviCRM again but this time I deleted all databases too and installed it again which had solved the problem.

But thank you. It is good to know that there is somebody who want to help :)

How can I mark this topic as solved?
« Last Edit: October 03, 2014, 07:45:59 am by karo3 »

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Error with the Mailing List Subscription
October 03, 2014, 08:21:42 am
Ahh, I always forget about the cache table.  Based on your fix I think that probably that was the root cause.  Glad you got it fixed though :)

I'm not sure how to mark it as solved, can you edit the original post?  If not maybe add it to the subject line on a response.
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Error with the Mailing List Subscription

This forum was archived on 2017-11-26.