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) »
  • Page not found on links in emails - all links are changed
Pages: [1]

Author Topic: Page not found on links in emails - all links are changed  (Read 3612 times)

Alan.Guggenheim

  • Guest
Page not found on links in emails - all links are changed
March 02, 2010, 07:43:04 am
All my links are changed somehow by CiviMail or the Editor (using CKEditor) at the time of sending the emails:
The link on the email (even after it is sent, looking at the email report) shows the correct link (for example):
http://<home>/content/precinct-convention-resolutions#comment-550
but the link inside the email received is (for example):
http://<home>/sites/all/modules/civicrm/extern/url.php?u=93080&qid=108296
and it does not work: people get Page not found


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Page not found on links in emails - all links are changed
March 02, 2010, 09:13:01 am
Quote from: Alan.Guggenheim on March 02, 2010, 07:43:04 am
The link on the email (even after it is sent, looking at the email report) shows the correct link (for example):
http://<home>/content/precinct-convention-resolutions#comment-550
but the link inside the email received is (for example):
http://<home>/sites/all/modules/civicrm/extern/url.php?u=93080&qid=108296

This is the tracking URL that should (a) count that a given link was clicked by the given recipient and (b) redirect to the proper URL. You can choose whether to track clicks on a per-mailing basis.

Quote
and it does not work: people get Page not found

Check whether non-logged-in users have the Drupal permission to access the right page.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Alan.Guggenheim

  • Guest
Re: Page not found on links in emails - all links are changed
March 02, 2010, 09:17:29 am
Thanks for the prompt answer.

This is the tracking URL that should (a) count that a given link was clicked by the given recipient and (b) redirect to the proper URL. You can choose whether to track clicks on a per-mailing basis.
OK, but for some reason it does not re-direct properly.

Quote
and it does not work: people get Page not found


Check whether non-logged-in users have the Drupal permission to access the right page.
Yes, they do, and even myself, as admin, I get a "page not found" error!


What could be wrong, then

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Page not found on links in emails - all links are changed
March 02, 2010, 09:19:10 am
Quote from: Piotr Szotkowski on March 02, 2010, 09:13:01 am
Quote
and it does not work: people get Page not found

Check whether non-logged-in users have the Drupal permission to access the right page.

…i.e., whether Drupal is not blocking that URL – and whether your webserver is not blocking it, of course.

Note that the URL resolver is a fairly simple script, and that the error seems to suggest that there was a problem accessing it, rather than that something went wrong during its execution.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Page not found on links in emails - all links are changed
March 02, 2010, 09:20:12 am
Quote from: Alan.Guggenheim on March 02, 2010, 09:17:29 am
Yes, they do, and even myself, as admin, I get a "page not found" error!

Can you check whether the path is right? I.e., whether the extern/url.php script is seen from the outside at the address people try to reach?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Alan.Guggenheim

  • Guest
Re: Page not found on links in emails - all links are changed
March 02, 2010, 09:24:34 am
Yes, the url is OK. Could it be the values, then? how do i check?


Oh... I just noticed that the owner/group are wrong for all sub-directories of CiviCRM. Must have appened in the 3.1.3 upgrade. I am changing now to the correct ones. Will report back in a minute.
« Last Edit: March 02, 2010, 09:28:19 am by Alan.Guggenheim »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Page not found on links in emails - all links are changed
March 03, 2010, 07:51:14 am
Quote from: Alan.Guggenheim on March 02, 2010, 09:24:34 am
Yes, the url is OK. Could it be the values, then? how do i check?

If people (and you) see a ‘page not found’ error, then (IMHO) it almost certainly mean that either the URL is wrong or the webserver (or Drupal) are restricting access to the file/URL.

If you have access to the webserver’s logs you can check whether the log is not more explicit about the problem.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Alan.Guggenheim

  • Guest
Re: Page not found on links in emails - all links are changed
March 03, 2010, 07:56:19 am
Thanks, I was too busy fighting fires, so I did not report back, but it is fixed. The owner and group were wrong for some sub-directories in modules/civicrm, and so it was an access problem. it is fixed now.
I wish we had a script to do the upgrades with one click. As we are all volunteers, busy and have to do it at night because the system must be taken offline, it is taking too much time and too many steps, and is error prone.
What would it take to write once and for all a script to do the upgradees? Other modules in Drupal are easier to upgrade. That would also help people stay uptodate more easily.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Page not found on links in emails - all links are changed
March 03, 2010, 08:11:34 am
Quote from: Alan.Guggenheim on March 03, 2010, 07:56:19 am
What would it take to write once and for all a script to do the upgradees? Other modules in Drupal are easier to upgrade. That would also help people stay uptodate more easily.

Hm, it depends on what you mean by this. We do have a relatively unproblematic upgrade approach for Drupal installations (in general: 0. make backups, 1. overwrite CiviCRM files, 2. visit civicrm/upgrade URL), and there is an initial work on drush integration: CRM-5818 + CRM-5830.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Alan.Guggenheim

  • Guest
Re: Page not found on links in emails - all links are changed
March 03, 2010, 08:36:10 am
Well, ideally it should be a one click (with a one click restore if it did not work) upgrade, and a script would do the backup, install,...)
The official instructions right now are listed on http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Drupal+Sites+to+3.1
and they are a 14 step process which takes at least 30 minutes, is quite error prone and does require a very knowledgable person to do it.


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: Page not found on links in emails - all links are changed
March 03, 2010, 09:14:45 am

ideally we'd also have more folks step up and contribute and make the process easier rather than just wish it was easier :P

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

Alan.Guggenheim

  • Guest
Re: Page not found on links in emails - all links are changed
March 03, 2010, 09:32:04 am
I agree with that and wish I could. Right now, I am still migrating a wordpress blog to drupal/civicrm for a non-profit, all volunteers, no budget organization all by myself. Together with migrating from shared to dedicated and now co-hosted server. So my time to learn all that new stuff (last time I did any programming myself was fortran, pl1, not talking of some business basic on fortune 16:32 systems for some of you old timers.... we were running whole accounting operations on a "desktop" linux box on motorolla 68000, with 256k of memory and a gigantic 5MB hard drive). That is where I did my first rm -r * in the wrong (root) directory...
Anyway, I hope i can help soon either myself or some sponsoring. Any idea how that works?

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: Page not found on links in emails - all links are changed
March 03, 2010, 10:37:44 am
Quote from: Alan.Guggenheim on March 03, 2010, 09:32:04 am
Anyway, I hope i can help soon either myself or some sponsoring. Any idea how that works?

http://wiki.civicrm.org/confluence/display/CRM/Developing+with+the+CiviCRM+team

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

Alan.Guggenheim

  • Guest
Re: Page not found on links in emails - all links are changed
March 03, 2010, 10:45:26 am
Thanks. So I understand the minimum is in the $5-10K range. I need to start fundraising...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Page not found on links in emails - all links are changed

This forum was archived on 2017-11-26.