<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Page Not Found Error (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Page Not Found Error
#800
frank (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:Page Not Found Error 3 Years, 3 Months ago Karma: 0  
Well I finally got this problem solved and the problem was with the .htaccess file in the root (/public_html/) directory. I originally had a FrontPage site located there and I replaced it with a Joomla site located in a subdirectory (/public_html/cms). I thought I used a domain pointer redirect so that www requests were served from the /cms subdirectory but somehow the .htaccess file in the root directory was changed instead and contained the following code:

Code:

RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} website.com RewriteCond %{REQUEST_URI} !/cms RewriteRule ^(.*)$ cms/$1 [L]
My web host changed the .htaccess file in my /links subdirectory so that it now contains the following code:
Code:

<Files directory> #ForceType application/x-httpd-php #SetHandler application/x-httpd-php #SetHandler application/x-httpd-php5 #ForceType x-httpd-php </Files> <FilesMatch "^(directory)$"> ForceType application/x-httpd-php </FilesMatch>
I deleted the .htaccess code in my root directory and used the domain pointing manager to point my domain to /public_html/cms and everything works fine now.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/01/26 07:07 By frank.
  The administrator has disabled public write access.
#863
jonny72 (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Page Error 3 Years, 2 Months ago Karma: 0  
Hello,

I am getting this error when trying to log into the control
panel

"Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/highdrum/public_html/linkdirectory/include/config.php:267) in /home/highdrum/public_html/linkdirectory/admin/index.php on line 23

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/highdrum/public_html/linkdirectory/include/config.php:267) in /home/highdrum/public_html/linkdirectory/admin/index.php on line 23"

Can anyone help please

jonny
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#864
Dewed (Admin)
Admin
Posts: 606
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Page Error 3 Years, 2 Months ago Karma: 9  
Sounds like when editing the config file you accidentally added a line or space to the end of it. Re-edit the config.php file, and make sure that the opening PHP tag is the very first thing, and that the closing PHP is the very past thing, with no new lines or spaces afterwards.


By the way, this is a pretty common issue with PHP scripts that use sessions and cookies, so it has a FAQ entry here http://www.dew-code.com/content/view/23/25/
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#984
pawmarks (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Page Not Found Error 2 Years, 10 Months ago Karma: 0  
Using Cpanel and Fantastico

Tried dewnewphplinks for the first time this morning and admin works great, but get a 404 error

Reviewed the .htaccess discussion, tried renaming it. no effect

Is this a common issue with a Fantastico install?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#985
Dewed (Admin)
Admin
Posts: 606
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Page Not Found Error 2 Years, 10 Months ago Karma: 9  
Renaming ?

The version bundled with Fantastico is not the latest version, however both use an .htaccess file, and could have the same problem depending on how your server is setup.
It mainly depends on which version of Apache your server runs.
http://www.dew-code.com/content/view/14/25/


Also, keep in mind lately it seems servers are set to cache .htaccess files, as well as your browser caching pages...

So if you try uncommenting one line in the .htacess , like

# ForceType application/x-httpd-php
SetHandler application/x-httpd-php

View your install, if the error persists, wait a minute, then hold shift and reload/refresh the page in your browser, to force your browser to fetch a fresh copy.

If the error still occurs, try the next line in the .htaccess by toggling the comment

#ForceType application/x-httpd-php
#SetHandler application/x-httpd-php
SetHandler application/x-httpd-php5

Grabbing the latest version will not magically detect which syntax to use, but it does add more features to the script.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#986
pawmarks (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Page Not Found Error 2 Years, 10 Months ago Karma: 0  
the first sethandler application directive was active. I commented it out.

Here's what the files section looks like now:

<Files directory>
# ForceType x-httpd-php
# ForceType application/x-httpd-php
# SetHandler application/x-httpd-php
# SetHandler application/x-httpd-php5
</Files>

And here's what I get when going to the top of the domain:

./500.html

(in the topmost left corner) nothing more.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008