Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

No Forms are displaying, please help - urgent


Go to End


7 Posts   3551 Views

Avatar
Searly

Community Member, 11 Posts

18 April 2009 at 7:52am

Hi there,

since i have migrated my site to the host (Fedora Linux/Apache/MySQL) from my Windows development box, none of the forms display (custom forms, login form or blog comment forms). I have checked the .ss files, they all include $Form variable. I have also changed back the site to use blackcandy ... still no forms, so it can't be a theme issue.

I can't even log into the CMS now becasue the login page (www.mysite.com/admin) only displays the heading "Login" but also no form.

Please has anybody an idea as what the problem may be ... thanks.

PS: ( I have attached a screenshot of how it looks on Dev box and on the site)

Avatar
Kalileo

Community Member, 127 Posts

19 April 2009 at 11:35pm

Sounds like a rewrite or path issue, or insufficient memory under php.
You have not mentioned if you have done any standard debugging, such as checking Apache's error log, Thus I propose to start with that. Quite often there's a clear error description.
So what's in there?

Avatar
Searly

Community Member, 11 Posts

21 April 2009 at 9:54am

Here the Error Log - could it be to do with Mollom?

[Fri Apr 10 11:46:04 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 11:46:19 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 11:46:24 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 11:47:11 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 11:48:39 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 11:48:48 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 11:49:21 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 11:49:28 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 12:30:11 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 12:30:17 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 12:30:29 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 12:32:18 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 12:32:21 2009] [error] [client 89.168.128.84] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 17:51:45 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Fri Apr 10 17:52:00 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 10:42:22 2009] [error] [client 78.86.198.100] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 10:46:09 2009] [error] [client 78.86.198.100] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 10:46:12 2009] [error] [client 78.86.198.100] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 10:46:23 2009] [error] [client 78.86.198.100] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 16:05:44 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:42:49 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:42:49 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:42:52 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:43:01 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:45:59 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:46:02 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:46:04 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:46:06 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:46:10 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:46:21 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:46:25 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:46:34 2009] [error] [client 88.110.21.144] PHP Warning: fileowner() [<a href='function.fileowner'>function.fileowner</a>]: stat failed for /var/www/vhosts/freegreenlandruby.com/httpdocs/testing/.htaccess in /var/www/vhosts/freegreenlandruby.com/httpdocs/testing/install.php on line 414
[Tue Apr 14 21:49:34 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 21:49:37 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Tue Apr 14 22:10:22 2009] [error] [client 88.110.21.144] PHP Fatal error: Couldn't run query: \nSHOW FULL FIELDS IN `Permission` \n\nTable 'freegreenlandrubydb.Permission' doesn't exist in /var/www/vhosts/freegreenlandruby.com/httpdocs/sapphire/core/model/MySQLDatabase.php on line 400
[Tue Apr 14 22:27:08 2009] [error] [client 213.121.241.121] PHP Warning: require_once(/var/www/vhosts/freegreenlandruby.com/httpdocs/mollom/_config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /tmp/silverstripe-cache-var-www-vhosts-freegreenlandruby.com-httpdocs/manifest-main on line 7548
[Tue Apr 14 22:27:08 2009] [error] [client 213.121.241.121] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/vhosts/freegreenlandruby.com/httpdocs/mollom/_config.php' (include_path='.:') in /tmp/silverstripe-cache-var-www-vhosts-freegreenlandruby.com-httpdocs/manifest-main on line 7548
[Tue Apr 14 22:37:19 2009] [error] [client 213.121.241.121] PHP Fatal error: Couldn't run query: \nSHOW FULL FIELDS IN `Permission` \n\nTable 'freegreenlandrubydb.Permission' doesn't exist in /var/www/vhosts/freegreenlandruby.com/httpdocs/sapphire/core/model/MySQLDatabase.php on line 400
[Tue Apr 14 22:39:53 2009] [error] [client 125.236.210.204] user not found: /
[Tue Apr 14 22:39:56 2009] [error] [client 125.236.210.204] user not found: /
[Tue Apr 14 22:52:12 2009] [error] [client 213.121.241.121] PHP Fatal error: Couldn't run query: \nSHOW FULL FIELDS IN `Permission` \n\nTable 'freegreenlandrubydb.Permission' doesn't exist in /var/www/vhosts/freegreenlandruby.com/httpdocs/sapphire/core/model/MySQLDatabase.php on line 407
[Wed Apr 15 11:16:51 2009] [alert] [client 88.110.21.144] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: The specified IP address is invalid.
[Wed Apr 15 11:26:25 2009] [alert] [client 88.110.21.144] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 11:27:17 2009] [alert] [client 88.110.21.144] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 11:27:20 2009] [alert] [client 88.110.21.144] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 11:27:56 2009] [alert] [client 88.110.21.144] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 11:28:06 2009] [alert] [client 88.110.21.144] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 11:29:39 2009] [alert] [client 88.110.21.144] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:13:04 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:13:04 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:13:23 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:14:00 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:14:05 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:18:30 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:18:31 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:18:34 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:20:22 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:22:50 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 12:23:18 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
[Wed Apr 15 19:20:15 2009] [error] [client 64.246.161.30] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/robots.txt, referer: http://www.whois.sc/
[Wed Apr 15 22:07:35 2009] [error] [client 88.110.21.144] File does not exist: /var/www/vhosts/freegreenlandruby.com/httpdocs/greenland
[Thu Apr 16 20:07:30 2009] [error] [client 88.110.21.144] PHP Warning: unlink(mysite/_config.php) [<a href='function.unlink'>function.unlink</a>]: Permission denied in /var/www/vhosts/freegreenlandruby.com/httpdocs/install.php on line 705, referer: http://www.freegreenlandruby.com/install.php
[Thu Apr 16 21:08:06 2009] [error] [client 88.110.21.144] PHP Catchable fatal error: Method RSSFeed::__toString() must return a string value in /var/www/vhosts/freegreenlandruby.com/httpdocs/sapphire/dev/Debug.php on line 558
[Thu Apr 16 21:08:07 2009] [error] [client 88.110.21.144] PHP Catchable fatal error: Method RSSFeed::__toString() must return a string value in /var/www/vhosts/freegreenlandruby.com/httpdocs/sapphire/dev/Debug.php on line 558

Avatar
Kalileo

Community Member, 127 Posts

21 April 2009 at 12:54pm

Here you try to run install.php, but it fails with Permission denied due to non-writable mysite/_config.php:

[Thu Apr 16 20:07:30 2009] [error] [client 88.110.21.144] PHP Warning: unlink(mysite/_config.php) [<a href='function.unlink'>function.unlink</a>]: Permission denied in /var/www/vhosts/freegreenlandruby.com/httpdocs/install.php on line 705, referer: http://www.freegreenlandruby.com/install.php 

However I assume that your migration and testing happened April 15 (you're not saying when, so I have to guess) and there is:

[Wed Apr 15 12:23:18 2009] [alert] [client 78.86.198.100] /var/www/vhosts/freegreenlandruby.com/httpdocs/.htaccess: allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards 

You might want to check your .htaccess ;)

Is it possible that you just ftp uploaded your site as it was on your windose development system to your real server without checking for correct permissions? The ftp upload might not have kept the writable stuff writable, and the files adapted to your development box, such as .htaccess and mysite/_config.php might need adjustment to fit to your real server environment. I assume that you have not considered that yet, please do so now.

Avatar
Searly

Community Member, 11 Posts

22 April 2009 at 8:55am

I have checked my .htaccess file ...

permissions: 666

content:

 ### SILVERSTRIPE START ###


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ 

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>


PHP_VALUE mbstring.func_overload 0

### SILVERSTRIPE END ###

and my mysite/_config.php has access rights 777

are there any other files / folders i need to check?

Avatar
Kalileo

Community Member, 127 Posts

22 April 2009 at 1:33pm

Searly, this is not the .htaccess which corresponds with the .htaccess error in your log. That error mentioned the command "allow". So there should have been a section in your .htaccess with that command, however the .htaccess you present does not have it. Example for such a section, as used for SilverStripe on a working OpenSUSE server installation:

<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>

So we're shooting on a moving target here. Let me propose to try to access now your server and show the lines in your apache error log which correspond to exactly this access.

If that error is giving a hint to .htaccess again please add the complete and current file content at exactly that time.

You might also try to put your system in dev mode, to see any message SS might give you.

Avatar
Searly

Community Member, 11 Posts

25 April 2009 at 12:48am

HI there,

thanks for your help ... i have finally decided to wipe it all off the host and reinstall from clean ... which solved the problem. I do believe that it possibly had sth. to do with file permissions (not the .htaccess file or _config.php file though). But trapising through each inidvidual file i had not the nerve. I think i will start setting up my Dev Box properly (with Linux) ... which i believe will have less potential problems.

Thanks again ...