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 Profiles (Moderator: Dave Greenberg) »
  • Wordpress Account Link "Not Working"
Pages: [1]

Author Topic: Wordpress Account Link "Not Working"  (Read 1445 times)

veseycreative

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.1.66
  • PHP version: 5.3.21
Wordpress Account Link "Not Working"
February 18, 2013, 07:59:36 am
Hi guys,
I've set up a simple directory listing through CiviCRM on our new wordpress site.  All seems to be going smoothly - except...
The 'View' link at the end of each listing works fine, but the 'Web Profile' link (that is supposed to link to Wordpress profile) comes up with
"You do not have permission to execute this url."

Help - Please!!  It's going live next week so really want to get it sorted before then.

to view site (as standard url will hit coming soon page):
theglobalcmo.com/beta

then on top nav menu 'GMN' / 'GMN Member Directory'

thanks heaps in advance.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress Account Link "Not Working"
February 19, 2013, 03:29:20 am
Check in your address bar if you are going from theglobalcmo.com to www.theglobalcmo.com (or vice versa) and therefore getting a permissions error.
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.

veseycreative

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.1.66
  • PHP version: 5.3.21
Re: Wordpress Account Link "Not Working"
February 19, 2013, 04:15:26 am
Thanks for the reply Hershel

Had a quick look but pages before the directory, the directory itself and the link you are sent to are all the same (https  and www included on all of them.)

any other ideas?

much appreciated

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress Account Link "Not Working"
February 19, 2013, 04:19:39 am
Post the full URLs of a good page and a "permission denied" page.
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.

veseycreative

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.1.66
  • PHP version: 5.3.21
Re: Wordpress Account Link "Not Working"
February 19, 2013, 04:32:31 am
Standard page
https://www.theglobalcmo.com/home/about-global-cmo/

member directory
https://www.theglobalcmo.com/home/gmn-member-directory/?page=CiviCRM&q=civicrm%2Fprofile&gid=2&force=1%2F

Profile link (not working)
https://www.theglobalcmo.com/home/gmn-member-directory/?page=CiviCRM&q=&user/5

It does bring up the base page.  It just has the "You do not have permission to execute this url." in the content section of the page.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Wordpress Account Link "Not Working"
February 19, 2013, 04:39:19 am
I'm afraid I don't know. That last URL doesn't look right but I don't know what would be correct. Hopefully someone else will answer here.

Or perhaps you could try to recreate this on the CiviCRM demo...
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.

veseycreative

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.1.66
  • PHP version: 5.3.21
Re: Wordpress Account Link "Not Working"
February 19, 2013, 05:52:26 am
Thanks for trying Hershel.

have tried to recreate on the demo but it won't show up the listings on the front end - keeps saying ID12 isn't available etc - No matter what ID i put into the url (the one I set up had ID13) - weird.

anyway.  Did a little more digging after your comments regarding the URL not being right on the last bit.

The Civi wiki explains that the link i'm having issues with is from plugins/civicrm/civicrm/CRM/Profile/Selector/Listings.php

Found the lines responsible (236-243 in mine):

Code: [Select]
      if ($ufLink) {
        self::$_links[CRM_Core_Action::PROFILE] = array(
          'name' => ts('Web Profile'),
          'url' => 'user/%%ufID%%',
          'qs' => ' ',
          'title' => ts('Web Profile'),
        );
      }

So guessing the 'url' bit needs to be changed.

Anyone have any ideas?

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: Wordpress Account Link "Not Working"
February 19, 2013, 08:21:59 am

That feature should not be exposed to wordpress. It is only relevant to the drupal integration where we integrate with the registration / my account process

Would be great if you can investigate and submit a patch that suppresses this for WP. Ideally, we do not show this option in the profile advanced settings

can you please file an issue for this @ http://issues.civicrm.org/

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

veseycreative

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.1.66
  • PHP version: 5.3.21
Re: Wordpress Account Link "Not Working"
February 19, 2013, 08:45:20 am
Oh, OK.

Will file the issue.  Just wanted to check - Was there a way it is supposed to work connecting the listing with the Wordpress account profile?  Or is that option not supposed to be there at all in the Profile Advanced Options?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Wordpress Account Link "Not Working"

This forum was archived on 2017-11-26.