Home arrow Forum Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping issue
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 05:24:01 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping issue
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping issue  (Read 5276 times)
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping issue
« on: December 05, 2005, 08:15:18 AM »

I've two web sites running Joomla and SMF

I've got past the installation Grin , but I get this error on the forum when i link to the forum.

error:
Code:
Notice: Undefined index: action in /var/www/html/magic/components/com_smf/smf.php on line 29

How do I fix this?

Secondly how do I get only the top menu when doing wrapped like this forum?





Joomla 1.0.4
SMF 1.1RC1
PHP 5.*
MySQL 4.*
Apache > 2.0.28
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #1 on: December 05, 2005, 08:38:50 AM »

I guess the question is how are you "linking" to the forum?  The installation process adds a menu item named forum.  Were you trying to add a separate menu item?  Were you adding a "link" or a component?

To do the top only menu you need to disable all left and right oriented modules while the forum is being displayed. 
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #2 on: December 05, 2005, 03:13:21 PM »

Ok, second answer first cause that sounds easier, how do I do that?

Back to the First part, its from the link the install created and it referes to this code:
Code:
/*1.3.2:sync smf userdata to mos / pass is dummy*/
if ( $_GET['action'] == "profile2" )  {
updateMOSfromSMF($_REQUEST['userID'], $_REQUEST['realName'], $_REQUEST['emailAddress'], $_REQUEST['passwrd2']);
}

Line 29 starts with If ( $_GET

Excuse the templates, i haven't worked out which one I'm happy with yet.
http://www.fres.org.uk/
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #3 on: December 05, 2005, 03:27:04 PM »

Ok, second answer first cause that sounds easier, how do I do that?

For all the modules you have on your site you need to set the Pages it is displayed on to *NOT* display on the forum.  To do this go into the administration and then select Site Modules from the Modules drop down.  For all modules that are published you will need to click on it to bring up the parameters.  In the settings on the right is a listing of all the menu links on your site under the title "Menu Item Links".  You want to deselect Forums.  This means in *MOST* cases you will have to select every item *EXCEPT* the forums.  Note that selecting ALL will of course display on all pages, including the forums. 



Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #4 on: December 05, 2005, 03:33:08 PM »

Can you add a forum link so I can see what you are describing?  Follow these steps:

1| Login to Joomla Administration
2| Click the menu that you wish to add the link to under the Menu drop down
3| Click New in the top left
4| Select 'Component' under 'Components' for the New Menu Item
5| Click 'Next'
6| Type the name 'JoomlaSMF test' for your menu link
7| Select 'Joomla-SMF Forum' for the component
8| Select 'yes' for Published
9| Click Save
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #5 on: December 05, 2005, 03:42:36 PM »

Ah, that makes sense for the second answer.  Damn I was sooo close. I played about with that 2 weeks ago.

Ok, text link now up.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #6 on: December 05, 2005, 03:48:13 PM »

the problem you are having is when you are logged in?  I see it displays the forum correctly when I am not logged in.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #7 on: December 05, 2005, 03:55:13 PM »

No, happens when I'm not logged in too.
And the other modules tend to screw up to (recent topics)

And when i switch disccsion bot on I get this code errors too
Code:
Notice: Undefined variable: row in /var/www/html/fres/mambots/content/smf.discussbot.php on line 37

Notice: Trying to get property of non-object in /var/www/html/fres/mambots/content/smf.discussbot.php on line 37


Hope I'm not confusing the issue.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #8 on: December 05, 2005, 03:57:44 PM »

Ok, I definitely see that error.  What is this smf discussbot?  Sorry, I am just unaware of it.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #9 on: December 05, 2005, 04:01:17 PM »

Modified version of SMF discussbot by Theodore Hildebrandt. Let's your content articles to be discussed on designated SMF boards. CHANGES: implemented SEF and display bot on the frontpage. USAGE: (1) {mos_smf_discuss} - you must define a default discussion board. (2) {mos_smf_discuss:General Discussion} - "General Discussion" is an SMF board.

Got it off this site.

Default in my case is "Ships Hanger" because its public.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #10 on: December 05, 2005, 04:02:06 PM »

Ok, I definitely see that error.  What is this smf discussbot?  Sorry, I am just unaware of it.
nevermind, I found it in the remository.  Disable that for now.  Let's deal with the forum issue.  I am not seeing the original error you reported(Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss).  Are you still receiving this error?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #11 on: December 05, 2005, 04:03:52 PM »


Notice: Undefined index: action in /var/www/html/fres/components/com_smf/smf.php on line 29 is still at the top of the forum, loggin in or out.

I think the discussion bot shows the recent active active discussions.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #12 on: December 05, 2005, 04:04:10 PM »

Ahhh, ok, I see the error.  Disable the discussbot for now and lets see if it goes away.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Tanathka
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 34


View Profile
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #13 on: December 05, 2005, 04:13:25 PM »

Un-publishing it didn't seem to do anything, so I removed the recent posts module and discussion bot completely.

Error appears to be still there.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Undefined index: action in ...../com_smf/smf.php on line 29 and wrapping iss
« Reply #14 on: December 05, 2005, 04:31:37 PM »

I guess I am really confused.  The only time action would be set is if you are already logged in.  This error message is not occurring on any of my sites.  It is saying that 'action' is not set to anything, which is normal.  I have no idea why it complains about that. 

I added some code to first check if this variable is not empty before trying to compare it to that string.  Try it out.

First backup your original smf.php to smf.php.orig
  **(this file is located in components/com_smf/)**
Then extract smf.php.zip to components/com_smf/

Make sure the name is smf.php
Then check the site again and see if you still receive that error message
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login