Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: (SOLVED) Newbie - Absolutely Blank page  (Read 3462 times)

mreoow

  • Newbie
  • *
  • Karma: 0
  • Posts: 5
(SOLVED) Newbie - Absolutely Blank page
« on: September 12, 2007, 10:41:58 pm »

Hello there,

This is my first post here. I've spent some time reading about what seems to be a great tool, checking the various possibilities it offers through the developers and community efforts, and god you guys are creative!

I'm not an expert in developing websites, but have managed to make some simple things work.

Now, I've installed sNews for testing.
- created the database & tables
- uploaded the files into an "sNews16" folder in the public folder of the server I was asked to work on for a friend (there's already a website there),
- replaced the existing .htaccess according to explanations found in troubleshooting (root folder? Is it the public one, or the one above? - put the .htaccess in both places anyway)

so it's should be accessible following the URL: http://domain/sNews16/

But... when I go there, I get a blank page, no errors, nothing, just a nice clean blank page.
Any ideas to help ?


Thanks.

« Last Edit: September 13, 2007, 04:58:17 am by Keyrocks »
Logged

ens

  • Sr. Member
  • ****
  • Karma: 12
  • Posts: 279
    • http://www.meatysite.info
Re: Newbie - Absolutely Blank page
« Reply #1 on: September 13, 2007, 12:01:35 am »

You want to upload snews.php, index.php, style.css and the .htaccess file into the "public_html" or "www" folder of the server. Not the root, or no one will see it.

I am understanding that you kept the folder snews16 and just uploaded that whole folder into the public_html directory, no? If so, comment out the following line in the .htaccess file:
Code: [Select]
#RewriteBase /sNews16so it should look like this:
Code: [Select]
RewriteBase /sNews16.
Logged

mreoow

  • Newbie
  • *
  • Karma: 0
  • Posts: 5
Re: Newbie - Absolutely Blank page
« Reply #2 on: September 13, 2007, 12:50:24 am »

Thanks, I try right away...

I must admit this comment in the .htaccess bothered me, but commenting out this line doesn't make any change.

I really have a hard time figuring out these server things. So I'll continue with a dumb question.
What should the 'root' level for sNews be?
A/ root -> public -> sNews16
B/ root (public) -> sNews

I have an .htaccess in each of these directories. And not knowing, I've put the info provided in the installing guide in the three of them. Also, they already had some info in them. Does it matter?
I tried to put the existing commands as comments but it doesn't help either.

Logged

ens

  • Sr. Member
  • ****
  • Karma: 12
  • Posts: 279
    • http://www.meatysite.info
Re: Newbie - Absolutely Blank page
« Reply #3 on: September 13, 2007, 01:04:29 am »

Most server's viewable public data is located at:

Root
 L public_html

You will know you are in root if you see random directories like cgi-bin or other folder starting with periods, ex: .cpanel-datastore Though it seems as if you have a different server setup than most. The setups that I know of, in terms of public folders, could be named as,
-public_html
-www
-httpdocs

It's okay if you overwrote files in the public folder.
Logged

mreoow

  • Newbie
  • *
  • Karma: 0
  • Posts: 5
Re: Newbie - Absolutely Blank page
« Reply #4 on: September 13, 2007, 01:19:27 am »

So what you say is I should have the 'snewsed' .htaccess in the root folder, but if I put one in the public (yes, this server config is strange), it doesn't do any harm.

I'm hopeless, sorry, but it doesnt do any good.

If it can be useful, here is what the .htaccess files I have in both locations look like.

ROOT LEVEL
----------------------------------------------------------------------
#CaseInsensitive On

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
RewriteBase /sNews16
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1&nbsp;articlespage=$2 [L]


ErrorDocument 404 /404-error-page.html
----------------------------------------------------------------------


PUBLIC LEVEL
------------------------------------------------
#<IfModule mod_php4.c>
#    php_value session.use_trans_sid 0
#</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
RewriteBase /sNews16
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1&nbsp;articlespage=$2 [L]


ErrorDocument 404 /404-error-page.html

#Order Deny,Allow
#Deny from XXX.XX.XX.XX (IP adresses here)
#Deny from XX.X.XX.XX
----------------------------------------------------------------------


Logged

ens

  • Sr. Member
  • ****
  • Karma: 12
  • Posts: 279
    • http://www.meatysite.info
Re: Newbie - Absolutely Blank page
« Reply #5 on: September 13, 2007, 01:39:11 am »

You shouldn't have put snews's .htaccess in your root. It should only be alongside wherever your snews installation is. In your case, I believe it is either /snews16 (if you uploaded the whole folder) or just / (if you only uploaded the files from the downloaded snews archive).

The slashes show the "sub" of your public folder. So "/" would be directly in your public folder, while "/snews16" is the directory named snews16 within your public folder.
Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: Newbie - Absolutely Blank page
« Reply #6 on: September 13, 2007, 01:48:55 am »

the htaccess, to be effective, should reside in your sNews root.
basically, everything that was in the zip file is how it should appear after upload.

If you uploaded to directory http://domain/snews16,
then snews16 is your snews root, and htaccess needs to reflect that, plus the settings in snews.php.
Logged
Of all the things I have lost, it is my mind that I miss the most.

mreoow

  • Newbie
  • *
  • Karma: 0
  • Posts: 5
Re: Newbie - Absolutely Blank page
« Reply #7 on: September 13, 2007, 02:15:51 am »

That's what I thought at first too, but as it didn't work, I logically thought my bad understanding on this root concept (that I applied to the server, not the installation) was responsible for it.

Anyway, now you both made things clear for me, so I have to re-verify all the settings, I must have made a mistake elsewhere.

[FEW MINUTES HERE]

I can't believe I'm so stupid, I had doubled a quote mark in the $db['website'] var and made the end of the URL of the installation appear like a comment.

So I can see the page, and I can log in, and I can start learning.

Thank you all for your valuable help. Now I guess I'll be back with other questions or need for advice as issues come up. But as I've told before, I've seen that many many topics are covered in the various forums. It's amazing to discover such an active community.

Later,
Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: Newbie - Absolutely Blank page
« Reply #8 on: September 13, 2007, 02:25:19 am »

welcome aboard...
This place is good for learning basic coding -- at your own pace even.
You'll be tweaking and producing in no time at all :D
Logged
Of all the things I have lost, it is my mind that I miss the most.

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: Newbie - Absolutely Blank page
« Reply #9 on: September 13, 2007, 02:27:42 am »

also, I would suggest going to patches forum, and applying all those to your install (assuming standard sNews)
Logged
Of all the things I have lost, it is my mind that I miss the most.

ens

  • Sr. Member
  • ****
  • Karma: 12
  • Posts: 279
    • http://www.meatysite.info
Re: Newbie - Absolutely Blank page
« Reply #10 on: September 13, 2007, 02:47:13 am »

Glad you figured it out, and good luck with snews in the future. I see you're eager to use it which is really good, and no worries -- the community will always respond within a couple of hours!
Logged

mreoow

  • Newbie
  • *
  • Karma: 0
  • Posts: 5
Re: (SOLVED) Newbie - Absolutely Blank page
« Reply #11 on: September 13, 2007, 10:20:51 am »

Now, I'm feeling welcome.

And yes, I've looked around for various solutions to upgrade the simple stuff I'm generally doing when designing small websites for friends, and I think I've found the one I will explore and use.

Thanks again all.
Logged

madeleine

  • Newbie
  • *
  • Karma: 0
  • Posts: 7
    • Club de Vuelo Deportivo Yvytú
Re: (SOLVED) Newbie - Absolutely Blank page
« Reply #12 on: January 16, 2008, 06:28:17 pm »

Post removed by Admin - double posted - original post is here.
@ Madelaine... please do not double post. This topic is marked as SOLVED... our sNews helpers tend not to re-view solved topics. Thanks you.  :)
« Last Edit: January 16, 2008, 07:08:39 pm by Keyrocks »
Logged