We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Linklist Module Action Invalid in EE?

Development and Programming

P.J.'s avatar
P.J.
158 posts
17 years ago
P.J.'s avatar P.J.

I am trying to use Yoshi’s LinkList Module 1.2 in EE 1.6.0. When I setup a URL such as:

http://www.mysite.com/index.php?ACT=28&urlid=1

EE returns an error message saying “The action you have requested is invalid.”

what did i do wrong?

       
Yoshi's avatar
Yoshi
39 posts
17 years ago
Yoshi's avatar Yoshi

What exactly is the URL you entered into the linklist, and how are you exactly using it?

       
P.J.'s avatar
P.J.
158 posts
17 years ago
P.J.'s avatar P.J.

hi, yoshi,

i don’t think i am doing anything different. in the “name of website” field, i just enter “My site” (as an example, without the quotes), and in the “URL of website” field, i enter “http://www.mysite.com” or “www.mysite.com” (i tried both, both without success”).

i am directly using the code as in:

http://www.mysite.com/index.php?ACT=28&urlid=1 
http://www.mysite.com/index.php?ACT=28&urlid=2 
http://www.mysite.com/index.php?ACT=28&urlid=3

for the first 3 links.

       
Yoshi's avatar
Yoshi
39 posts
17 years ago
Yoshi's avatar Yoshi

Can you show the template code?

I’m not sure why EE would be coming back with that error. Unless it was installed funky. Or the actions in the database have changed.

I’d almost try uninstalling the module and reinstalling it.

make sure you back up your links, because they’ll be lost if you reinstall it.

       
P.J.'s avatar
P.J.
158 posts
17 years ago
P.J.'s avatar P.J.

hi, yoshi,

this is exactly what i inserted in the template code:

<a href="http://www.mydomain.com/index.php?ACT=28&urlid=1">test.com</a>

and the url id is inserted in the linklist module as http://www.test.com or www.test.com

i have uninstalled and reinstalled the module, with no change.

       
Yoshi's avatar
Yoshi
39 posts
17 years ago
Yoshi's avatar Yoshi

oh that shouldn’t be right.

in your template you should be using it like this:

{count_linkcode}

It looks like you’re copying and pasting the code from the documentation. That’s why you’re getting the error, because ExpressionEngine doesn’t see ACTion #28 in your database. (At least this is my guess).

the {count_linkcode} variable will output it out correctly.

the full template code should be something like this:

{exp:linklist:entries linklist="mylinks|newlinks" orderby="url_title" sort="ASC" status="open" limit="10"}
{count_linkcode}

{/exp:linklist:entries}

Hope this helps! (and makes sense!) :D

       
P.J.'s avatar
P.J.
158 posts
17 years ago
P.J.'s avatar P.J.

hi, yoshi,

i got you now. i tried your code, and it is now generating

http://www.mysite.com/index.php?ACT=26&urlid=1

when i hover over the link, and it works! i like to know the following:

  1. why do i get “ACT=26” instead of “ACT=28”? is “ACT=26” constant for all the links and all the linklists? if i install and uninstall the linklist module, will “ACT=26” stays the same?
  2. in the linklist, i tried “www.othersite.com” and “http://www.othersite.com”, only the latter works (the one with http:), is this deliberate?
  3. is there any harm of using “http://www.mysite.com/?ACT=26&urlid=1” (this is the default generated by linklist) instead of “”http://www.mysite.com/index.php?ACT=26&urlid=1”?
  4. is there anyway i can manually choose what urlid i use? must it use consecutive numbers?

thanks, yoshi

       
Yoshi's avatar
Yoshi
39 posts
17 years ago
Yoshi's avatar Yoshi
  1. the 26 is an ID for the action by mysql. it’s something you don’t control. the 28 is just an example.

  2. yes, all urls must start with http://.

  3. there’s no harm really that I can think of.

  4. URL ID’s are chosen by mysql. these are autogenerated by your database and no, you cannot choose them.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

ACT is the action for the module - the number depends on what order you installed modules in. It will not be consistent between installations.

       
P.J.'s avatar
P.J.
158 posts
17 years ago
P.J.'s avatar P.J.

lisa,

does this mean, as long as i don’t install any module, if i uninstall linklist and later reinstall linklist in the same EE, it will still be ACT=26?

i don’t have 26 modules (even counting plugins) installed, so why 26?

       
Yoshi's avatar
Yoshi
39 posts
17 years ago
Yoshi's avatar Yoshi

the 26 doesn’t correspond to how many modules you have it’s more on how many ACTions you have installed. They all do different things. To be honest, for normal operations of your website, you don’t even need to know what the numbers are or do. (unless you’re a developer like me)

If that makes sense.

       
P.J.'s avatar
P.J.
158 posts
17 years ago
P.J.'s avatar P.J.

yoshi, thanks so much for all your speedy help. all is well!

great module, yoshi.

       
Yoshi's avatar
Yoshi
39 posts
17 years ago
Yoshi's avatar Yoshi

Thanks, and no problem! :D

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.