Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 11:53 am EST
Geeklog Forums
Static Pages error after 1.3.9 install
Status: offline
horkulated.com
Forum User
Newbie
Registered: 01/28/04
Posts: 10
"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??
Horkulated -- Where Great Ideas go to Die
Huh? I backed up my staticpages stuff, and reinstalled the staticpages plugin, just like Dirk said... what does this message mean??
Horkulated -- Where Great Ideas go to Die
13
15
Quote
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
It ain't easy being you
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
It ain't easy being you
9
12
Quote
tokyoahead
Anonymous
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...
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...
13
10
Quote
tokyoahead
Anonymous
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)
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)
16
12
Quote
All times are EST. The time is now 11:53 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content