Posted on: 03/15/04 12:15pm
By: horkulated.com
"URL Class: number of names passed to setArgNames must be equal or greater than number of arguments found in URL"
Huh? I backed up my staticpages stuff, and reinstalled the staticpages plugin, just like Dirk said... what does this message mean??
Static Pages error after 1.3.9 install
Posted on: 03/15/04 09:41pm
By: jef
Same prob here.. Tried install - reinstall.. Not workin'
Static Pages error after 1.3.9 install
Posted on: 03/16/04 04:56am
By: Dirk
Did you (both of you) replace the system/classes/url.class.php
file?
bye, Dirk
Static Pages error after 1.3.9 install
Posted on: 04/09/04 10:56am
By: jef
Well, this is a fresh install. The system/classes/url.class.php file I use is the one included in the tarball...
I've checked and compared with the 1.3.8 file and I found this difference:
Old 1.3.8
function setArgNames($names)
{
if (count($names) < count($this->arguments)) {
print "URL Class: number of names passed to setArgNames must be equal or greater than number of arguments found in URL";
exit;
}
if (is_array($names)) {
$newArray = array();
for ($i = 1; $i <= count($this->_arguments); $i++) {
$newArray[current($names)] = current($this->_arguments);
next($names);
next($this->_arguments);
}
$this->_arguments = $newArray;
reset($this->_arguments);
} else {
return false;
}
return true;
}
Compared to new 1.3.9
function setArgNames($names)
{
if (count($names) < count($this->_arguments)) {
print "URL Class: number of names passed to setArgNames must be equal or greater than number of arguments found in URL";
exit;
}
if (is_array($names)) {
$newArray = array();
for ($i = 1; $i <= count($this->_arguments); $i++) {
$newArray[current($names)] = current($this->_arguments);
next($names);
next($this->_arguments);
}
$this->_arguments = $newArray;
reset($this->_arguments);
} else {
return false;
}
return true;
}
----------------------------------
Actually, the only diff. is the missing "_" in front of the first "arguments". This is enough to gain acces to the static pages plugin admin page, but I get a 500 internal server error.. because it's calling .../admin/plugins/staticpages/index.php/edit
There is a serie of bugs there.. what function within that page shout it call to make it functionnal?
Thanks for your answer
Static Pages error after 1.3.9 install
Posted on: 08/18/04 02:35am
By: thedude
So, what's the resolution to it? I'm still having that error. Please advise. Many thanks.
Static Pages error after 1.3.9 install
Posted on: 08/18/04 02:41am
By: thedude
[QUOTE BY= Dirk] Did you (both of you) replace the system/classes/url.class.php
file?
bye, Dirk[/QUOTE]
Please details Dirk. Replace it with what? Please advise. Many thanks.
The Dude
Static Pages error after 1.3.9 install
Posted on: 08/20/04 02:36pm
By: Dirk
[QUOTE BY= thedude] Please advise.[/QUOTE]
This is an old thread - Geeklog 1.3.9sr1 shouldn't have that problem.
bye, Dirk
Static Pages error after 1.3.9 install
Posted on: 08/26/04 02:48pm
By: thedude
Really... Hmmmm.....
Coz I'm using 1.3.9sr1 and I'm still having the same problem accessing the staticpages admin with the same error..
Please advise...
Thanks Dirk..
The Dude
Static Pages error after 1.3.9 install
Posted on: 02/27/05 04:58am
By: Anonymous (tokyoahead)
I am getting the same problem now. I installed the rewrite-function now and the static page editor wont work anymore. calling editor of a page gives me the error:
http://tokyoahead.com/main/admin/plugins/staticpages/index.php/edit/newsmailer/
URL Class: number of names passed to setArgNames must be equal or greater than number of arguments found in URL
I think the edit-links should not use the rewrite. for the sotry edit, they dont:
http://tokyoahead.com/main/admin/story.php?mode=edit&sid=newsmailerannounce
I have the latest version, not customizing done on classes...
Static Pages error after 1.3.9 install
Posted on: 02/28/05 01:35pm
By: Steven
Static Pages error after 1.3.9 install
Posted on: 02/28/05 05:41pm
By: Anonymous (tokyoahead)
Well sorry but this surely cannot be an answer. If there is a URL rewriting feature in geeklog, and all edit pages exept the static page ones work with it, switchign it simply off is not a proper solution, more a workaround.
specially if the problem is seemingly old and should be fixed already since some time ago. (not to mention the fact that I clearly stated that the link is not working because I switched on the rewriting)