It is currently Sat Oct 11, 2008 6:35 pm

 

All times are UTC


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 30 posts ] 
Author Message
 Post subject: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Thu Jun 29, 2006 1:12 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 15, 2005 10:44 am
Posts: 8
Hi all,
I've patched two Joomla! 1.0.9 installations with the latest 1.0.10 patch and in both cases I've noticed the same problem:

when logging in as an admin at the back-end I get on top of the page the following message:
"Warning: Missing argument 2 for initsessionadmin() in /var/www/html/site/includes/joomla.php on line 742"

Everything seems to work otherwise, but the message still remains... ???
Please note that the patch installation, in both cases, has been done correctly.
Any advice?

Thanx in advance... PLEASE HELP!  :(


Last edited by stingrey on Sun Jul 02, 2006 3:38 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Problem in back-end when upgrading from 1.0.9 to 1.0.10
PostPosted: Thu Jun 29, 2006 5:32 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 7:13 am
Posts: 11058
Will forward to the Q&T Forum, this is monitored. I have seen quite a lot of these after Joomla 1.0.10 came out. Could you please state PHP, Mysql and Apache version? What modules and components are you using?

_________________
Antonie de Wilde - Forum admin


Top
 Profile  
 
 Post subject: Re: Problem in back-end when upgrading from 1.0.9 to 1.0.10
PostPosted: Thu Jun 29, 2006 6:27 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Aug 22, 2005 5:41 pm
Posts: 185
I have this error as well, on one site but not on another..... both on the same server!
PHP 4.4.2 (phpsuexec)
MySql 4.1.19
apache 1.3.36

Both sites run OpenSef


Top
 Profile E-mail  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Fri Jun 30, 2006 3:11 am 
I think this work around from Yair should help you guys.
Amy

guruyaya wrote:
I have upgraded from 1.0.9 to 1.0.10, and I got this error in my admin panel
Warning: Missing argument 2 for mosMainFrame::initSessionAdmin(), called in /path/to/joomla/administrator/index2.php on line 38 and defined in /path/to/joomla/includes/joomla.php on line 742

I have downloaded a full version, and copied index2.htm into the administrator folder, and it seem quite OK. Yet I believe that it`s best to include the new file in the upgrade patch. Might save some problems :)

Have a great day
Yair


Top
  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Fri Jun 30, 2006 7:41 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 15, 2005 10:44 am
Posts: 8
Apache version: Apache/2.0.49 (Fedora)
PHP: 4.3.10
MySQL: 3.23.58

The only component I'm using is JCE WYSIWYG Editor
No extra modules.

However, I've followed AmyStephen's advice and overwritten index2.php (I think that's what you ment, there's no index2.htm there  ;)) into the admin folder and it seems that the problem's gone. No warning message anymore, and everything seems to work smoothly.

Thanx again


Top
 Profile  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Fri Jun 30, 2006 7:46 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1301
Location: New Orleans, LA, USA
To clarify, the problem occurs when upgrading a 1.0.9 installation to 1.0.10 via the upgrade patch, not the full install?  If that is the case we need to get one of the developers to repackage the patch to include index2.php because this has apparently changed but was overlooked when it came time to create the patches. 

_________________
Rob Schley - Joomla! Development Working Group - Open Source Matters Board
WebImagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
 Profile E-mail  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Fri Jun 30, 2006 8:13 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 15, 2005 10:44 am
Posts: 8
I think that's the case... :)


Top
 Profile  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Fri Jun 30, 2006 8:32 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1301
Location: New Orleans, LA, USA
Which patch file specifically did you use?  The options were:

Joomla_1.0.9_to_1.0.10-Stable-Patch_Package.zip
Joomla_1.0.9_to_1.0.10-Stable-Patch_Package.tar.gz
Joomla_1.0.9_to_1.0.10-Stable-Patch_Package.tar.bz2

I tried to duplicate this problem using the middle one, Joomla_1.0.9_to_1.0.10-Stable-Patch_Package.tar.gz, but I did not recieve the error that you guys are referring to.

_________________
Rob Schley - Joomla! Development Working Group - Open Source Matters Board
WebImagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
 Profile E-mail  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Fri Jun 30, 2006 8:50 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 15, 2005 10:44 am
Posts: 8
I used the tar.gz patch in both cases


Top
 Profile  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Fri Jun 30, 2006 9:17 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1301
Location: New Orleans, LA, USA
Perhaps I have stumbled onto something here.  I did not encounter the problem using the upgrade path that you said you followed, I did however encounter the problem when I upgraded from 1.0.8 to 1.0.10 using the 1.0.9 to 1.0.10 upgrade patch.  Yes, this is obviously incorrect on my part, but, I did it on purpose.  The error I received was "Warning: Missing argument 2 for mosMainFrame::initSessionAdmin(), called in /path/to/data/administrator/index2.php on line 38 and defined in /path/to/data/includes/joomla.php on line 742" which is exactly what guruyaya was experiencing.  And the others said when the applied the fix that he did, it fixed there problem as well.  However, I also received a notice that I didn't see anyone else post.  It was: "Notice: Undefined variable: task in /path/to/data/includes/joomla.php on line 773"  Did anyone else get this message as well or is that something unique to my test?

Given that wrongly applied patches are the actual cause of the problem, simply replacing the index2.php file will not fix all of the potential bugs because the 1.0.8 to 1.0.10 patch replaces several more files than the 1.0.9 to 1.0.10 patch.  If you have an improperly patched Joomla installation, it is probably only a matter of time before you discover more bugs.  Perhaps to test my theory, back up your directory, and go back and apply the 1.0.8 to 1.0.10 patch and see if it works.  If I am wrong, and it doesn't, you have a nice fresh backup that you can easily restore.  Maybe an even better idea is just to download the full 1.0.10 package and unpackage that over your existing files to be safe that everything is correct.

_________________
Rob Schley - Joomla! Development Working Group - Open Source Matters Board
WebImagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
 Profile E-mail  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Fri Jun 30, 2006 10:48 am 
kostask wrote:
However, I've followed AmyStephen's advice and overwritten index2.php


LOL! I didn't even notice that in the quote. Wish I could take credit for the fix, Yair is the man of the hour!

Glad you are okay! Amy

@RobS - Consolidated list: < http://forum.joomla.org/index.php/topic ... #msg378677 > of people with that error. I do not remember seeing the 773 line in anyone's posts and it appears most went from 1.0.9 to 1.0.10 to me. Good luck!


Top
  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Sun Jul 02, 2006 9:37 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 15, 2005 10:44 am
Posts: 8
:) Thanx to both of you, then..!


Top
 Profile  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Sun Jul 02, 2006 3:00 pm 
kostask wrote:
:) Thanx to both of you, then..!


That is sweet! You are welcome. Glad you are okay, now!


Top
  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Sun Jul 02, 2006 7:45 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Mar 25, 2006 7:39 pm
Posts: 34
I'm going on the assumption that my problem stems from using the wrong update package. So I need to do a clean install of v. 1.0.10. Can I do that without disturbing the MySQL database?

Jim


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Mon Jul 03, 2006 3:57 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Aug 22, 2005 5:41 pm
Posts: 185
jpschwartz wrote:
I'm going on the assumption that my problem stems from using the wrong update package. So I need to do a clean install of v. 1.0.10. Can I do that without disturbing the MySQL database?

Jim


what version are you on now?

You might be able to, but you may have to run a sql query after, to fix up the DB.

John


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Mon Jul 03, 2006 8:34 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 7:13 am
Posts: 11058
There haven't been any updates to the database since the first Joomla version, copying over the files is enough. Do watch out for any core hacks you made, create a back-up for starting, copy your template directory if you changed one of the default templates. After copying, the /installation directory need to be deleted (or not copy it at all). Your current configuration will not be overwritten, since configuration.php is not in the default Joomla install.

_________________
Antonie de Wilde - Forum admin


Top
 Profile  
 
 Post subject: Re: Warning: Missing argument 2 for initsessionadmin() after 1.0.10 upgrade
PostPosted: Mon Jul 03, 2006 8:37 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 27, 2005 12:33 pm
Posts: 72
Location: Milan, Italy.
RobS wrote:
If that is the case we need to get one of the developers to repackage the patch to include index2.php because this has apparently changed but was overlooked when it came time to create the patches. 


Before I go from 1.0.9 to 1.0.10, can someone confirm whether the above has been done?

Thanks

Alex

_________________
Joomla!/Open Source - the way to go for people who just want to create.


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Mon Jul 03, 2006 8:41 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 7:13 am
Posts: 11058
No, this has not been done. There have been no changes to that particular file in 1.0.9, the last change to that file was in 1.0.8. Only changed files are part of a patch.

_________________
Antonie de Wilde - Forum admin


Top
 Profile  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Mon Jul 03, 2006 8:43 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Sep 27, 2005 12:33 pm
Posts: 72
Location: Milan, Italy.
OK - got that. 

Thanks Tonie.

Will proceed with upgrade.

_________________
Joomla!/Open Source - the way to go for people who just want to create.


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Mon Jul 03, 2006 12:01 pm 
To add a bit to Tonie is saying, Rey's post that links to this thread indicates these problems are coming from using the wrong upgrade file. < http://forum.joomla.org/index.php/topic ... #msg381356 >

So, that is why the upgrade between 1.0.9 to 1.0.10 is not going to be "fixed," it was apparently not broken. (Unless I am really misunderstanding Rey's point.)

Good luck Alex! Amy


Top
  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Mon Jul 03, 2006 2:36 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Mar 25, 2006 7:39 pm
Posts: 34
Tonie wrote:
There haven't been any updates to the database since the first Joomla version, copying over the files is enough. Do watch out for any core hacks you made, create a back-up for starting, copy your template directory if you changed one of the default templates. After copying, the /installation directory need to be deleted (or not copy it at all). Your current configuration will not be overwritten, since configuration.php is not in the default Joomla install.


Thanks, Tonie!

-Jim


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Wed Jul 05, 2006 4:41 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Nov 28, 2005 5:00 pm
Posts: 32
Location: Mumbai, India
kostask wrote:
Hi all,

when logging in as an admin at the back-end I get on top of the page the following message:
"Warning: Missing argument 2 for initsessionadmin() in /var/www/html/site/includes/joomla.php on line 742"

Everything seems to work otherwise, but the message still remains... ???
Please note that the patch installation, in both cases, has been done correctly.
Any advice?


I also got the same error after updating all patch files from 1.0.8 to 1.0.10. As everything else was working fine, I left it as it for later investigation and after that my already hacked site had to be suspended as DOS attack was launched using my site.
I then tried complete version 1.0.10 with same database on my local server and there is no error. So I recommend using the complete version as patching is bit troublesome and there is always a danger of missing one or the other patch files and getting some error which is difficult to locate.

_________________
A man is not finished when he is defeated,
He is finished when he quits


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Wed Jul 05, 2006 5:25 am 
Joomlamahesh -

Did you see my post two up from yours - reply #19? That error happens when people accidentally apply the 1.0.9 to 1.0.10 patch INSTEAD OF the 1.0.8 to 1.0.10 patch. It sounds like this has happened to others, as well.

See Rey's post: < http://forum.joomla.org/index.php/topic ... #msg381356 >

Good luck! Amy


Top
  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Sat Jul 08, 2006 9:15 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu May 25, 2006 11:11 pm
Posts: 1
I fixed this by changing index2 and index3 in the administrator folder:

around line 37 change to the following in both files:

// initialise some common request directives
$task = mosGetParam( $_REQUEST, 'task', '' );
$act = strtolower( mosGetParam( $_REQUEST, 'act', '' ) );
$section = mosGetParam( $_REQUEST, 'section', '' );
$mosmsg = strip_tags( mosGetParam( $_REQUEST, 'mosmsg', '' ) );
$no_html = strtolower( mosGetParam( $_REQUEST, 'no_html', '' ) );

//***** Note: Moved admin session handling here below variable declarations above
// admin session handling
//***** Note: added $task to this function call as required...
// WAS: $my = $mainframe->initSessionAdmin( $option );
$my = $mainframe->initSessionAdmin( $option, $task );

The change to the last line in bold, adding the $task argument,
and moving it down below the variable initializations does the trick.

Then upload these two files back to your server and the problem is fixed.


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Sun Jul 09, 2006 2:36 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Dec 01, 2005 4:34 pm
Posts: 4
Location: Norway
I don't like to be the one bringing bad news, but I just upgraded 5 minutes ago. Don't think it can be that difficult to pick the right upgrade file.
I downloaded this file: Joomla_1.0.9_to_1.0.10-Stable-Patch_Package.zip
From this location: http://forge.joomla.org/sf/frs/do/downl ... s5791?dl=1
Stating clearly that it's from 1.0.9 to 1.0.10

I am positive that I had 1.0.9 before upgrading, and I got the same mentioned error.
After downloading the full package (.zip) and overwriting administrator/index2.php the error was gone.

Here's the rest of my info:
PHP Version:  4.4.1
MySql Version:  4.1.14-standard
Apache 1.3.34 (Unix)

Maybe there's a bug in there after all?


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Sun Jul 09, 2006 2:39 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1301
Location: New Orleans, LA, USA
I did a comparison of the 1.0.8 and 1.0.9 install packages against the code people were reporting was wrong and it matched 1.0.8 exactly...  It has something to do with improper patching or files being locked so they can't be overwritten... we just haven't figured it out exactly. 

_________________
Rob Schley - Joomla! Development Working Group - Open Source Matters Board
WebImagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Sun Jul 09, 2006 12:14 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Dec 01, 2005 4:34 pm
Posts: 4
Location: Norway
I did not copy and overwrite the old files, I allways delete the old ones first, then copy in the new ones.

I found another error too, even if I replaced all index-files in root and administrator:

The RSS feed doesn't work, it gived this errors:

Warning: Missing argument 2 for newsfeedencoding() in /home/user/public_html/root/includes/joomla.php on line 5408

Fatal error: Call to undefined function: () in /home/user/public_html/root/components/com_newsfeeds/newsfeeds.html.php on line 274

Didn't work to replace joomla.php eighter..


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Sun Jul 09, 2006 12:36 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Dec 01, 2005 4:34 pm
Posts: 4
Location: Norway
Just a last note:
I picked both files in components/com_newsfeeds from the full package-zip and the last error was gone.
I replaced the new ones with the ones from the 1.0.9 to 1.0.10 (as a test) and the error came back.

I can't actually see any differences between the files from that two zip's so I don't know why.
The files looks identical to me.
..but it works with the files from the full package :o)


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Fri Aug 11, 2006 7:32 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jan 16, 2006 2:11 am
Posts: 6
Location: Australia
I has teh same error after upgrade from 1.09 to 1.10 and
just uploaded the Index2.php into the admin from teh full version and all works fine now

thanks for the fix

_________________
Regards


2 Feel is 2 Believe


Top
 Profile E-mail  
 
 Post subject: Re: [NOT BUG] Warning: Missing argument 2 for initsessionadmin() after upgrade
PostPosted: Wed Aug 30, 2006 4:10 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Sep 07, 2005 10:26 pm
Posts: 23
Location: Chicago
i have deleted the file downloaded the full version and done everything i can think of but still get the "Fatal error: Call to undefined function: initsessionadmin()" error at the admin interface.

was upgrading from Joomla! 1.0.4 [ Sundial - eCommerce Edition ]


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ] 


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: