new page problem
Started by benbyf, Mar 28 2011 09:57 AM
7 replies to this topic
#1
Posted 28 March 2011 - 09:57 AM
I would love processwire to work for me but i continuously has problems - the latest is adding a child page of 'home' it gives me an odd error after filling in the name form
- Can't save page 0: /0/: It has an empty 'name' field
I'm running on 34sp.com servers - installation passed most of teh checks other than not being able to determine server type and finding mod_rewrite on.
Any ideas would be great, thanks.
- Can't save page 0: /0/: It has an empty 'name' field
I'm running on 34sp.com servers - installation passed most of teh checks other than not being able to determine server type and finding mod_rewrite on.
Any ideas would be great, thanks.
#2
Posted 28 March 2011 - 10:55 AM
Are you doing this from the admin or from the API? If from the API, what it's telling you is that you need to populate $page->name before saving it.
But it sounds like you are in the admin, so it is a strange error to see when adding a page in the admin. What is the name you trying to give the page? The only instance I can think of where you might get this error is if the page name you are trying to use is a reserved word. Also you mentioned some other problems - Can you describe them further? If there is something environment specific, the more we know, the better chance we can track down what's going in in this environment. Since the installer couldn't detect the server type or mod_rewrite, that indicates potential incompatibility. A link to phpinfo may be helpful too (feel free to PM it to me if you prefer).
Thanks,
Ryan
But it sounds like you are in the admin, so it is a strange error to see when adding a page in the admin. What is the name you trying to give the page? The only instance I can think of where you might get this error is if the page name you are trying to use is a reserved word. Also you mentioned some other problems - Can you describe them further? If there is something environment specific, the more we know, the better chance we can track down what's going in in this environment. Since the installer couldn't detect the server type or mod_rewrite, that indicates potential incompatibility. A link to phpinfo may be helpful too (feel free to PM it to me if you prefer).
Thanks,
Ryan
#3
Posted 28 March 2011 - 11:28 AM
your right, it was in the admin section. the page was 'Latest News' and the name field was filled in automatically as 'latest-news'. But as I mentioned I seem to get errors alot, but I'll put them up when incounted again.
thanks
thanks
#4
Posted 28 March 2011 - 01:49 PM
Definitely not a reserved-word problem with a name like "latest-news". I think we must be running into some kind of incompatibility with your server or it's version of PHP. Do you know what version of PHP is running on the server? One thing you can do is upload a file called phpinfo.php with nothing in it but this:
Then load the URL you uploaded that file to in your browser, and PM me the link or send a PDF/screenshot of the result to me.
<?php phpinfo();
Then load the URL you uploaded that file to in your browser, and PM me the link or send a PDF/screenshot of the result to me.
#8
Posted 29 March 2011 - 10:43 AM
I went to create a new page with the name "0" (zero). You are right that PW didn't like it. Though the error I got was different than the one previously posted here (see screenshot). But the problem is in how PW checks to see if it has a value:
I'm changing it to:
This is fixed in the latest commit: https://github.com/r...ssWire/commits/
Thanks,
Ryan
if(!$page->name) $this->error("missing the name field");
I'm changing it to:
if(!strlen($page->name)) $this->error("missing the name field");
This is fixed in the latest commit: https://github.com/r...ssWire/commits/
Thanks,
Ryan
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













