Help... user/register

kbettis - August 27, 2008 - 02:22

When a user tries to create a new account they are taken to mysite.com/freeprofile
Which bypasses the entire drupal system and is hard coded to add the user to the database.
I am trying to put it back so drupal can handle the registration.

Problem is I have taken over for another webmaster. And am trying to figure out how
she changed this. I mean even at the login screen if you click on the create a new account
tab it takes you to mysite.com/freeprofile instead of to the mysite.com/user/register

Can you access user/register

feloescoto - August 27, 2008 - 03:51

Can you access user/register if you type it?

If so, all that was changed is the links, you only need to change the menus and the text in the login block

If not, let us know, there might be a redirection in the user/register page.

http://inTribu.com

No if I type it in manually

kbettis - August 27, 2008 - 14:57

No if I type it in manually it redirects to mysite.com/freeprofile
which takes it to the hard coded way.

My website is enlita.com

URL alias

mrtoner - August 27, 2008 - 16:22

You can probably start by looking at your URL aliases and remove any and all that refer to user/register.

There are no alias listed

kbettis - August 27, 2008 - 23:15

There are no alias listed for user/register in the admin section.
and /freeprofile goes to /node/753. But when I remove the freeprofile
alias it still doesnt work. even typing in user/register.

If the redirection is not

feloescoto - August 28, 2008 - 00:37

If the redirection is not done by drupals path module, it may be hardcoded in the user.module
or maybe it is done by apache, confirm in the .htaccess

What happens when you remove the freeprofile alias and type user/register?

http://inTribu.com

If i remove the freeprofile

kbettis - August 28, 2008 - 14:00

If i remove the freeprofile alias and then type in user/register it simply pulls up a page not found page
here is the .htaccess

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.

Order allow,deny

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.

# PHP 4, Apache 1.

php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0

# PHP 4, Apache 2.

php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0

# PHP 5, Apache 1 and 2.

php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0

# Requires mod_expires to be enabled.

# Enable expirations.
ExpiresActive Off
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1

# Various rewrite rules.

RewriteEngine on

# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
RewriteCond %{HTTP_HOST} ^enlita\.com$ [NC]
RewriteRule ^(.*)$ http://www.enlita.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
#RewriteBase /drupal

# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]

# Rewrite old-style URLs of the form 'module.php?mod=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]

# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

RewriteRule ^no_rewrite/mailer - [L]
RewriteRule ^no_rewrite/mailer/admin - [L]

# $Id: .htaccess,v 1.81.2.2 2007/05/21 01:34:59 drumm Exp $
AddHandler application/x-httpd-php .htm
AddHandler application/x-httpd-php .html

AddHandler application/x-httpd-php5 .html .htm
DirectoryIndex index.htm index.php
#PHP_FLAG output_buffering on

user.module

kbettis - August 28, 2008 - 14:13

http://www.enlita.com/user I

kbettis - August 28, 2008 - 14:38

http://www.enlita.com/user

I removed the alias for freeprofile. Yet as you can see if you click on
create a new account. it even shows the right link but then takes you
to freeprofile.

ditto user.module

mrtoner - August 28, 2008 - 16:15

It's possible that user.module was hacked to do this. Back it up and replace it with a fresh copy.

First, though, make sure you've not got a module that's hooking into that function. Disable any modules that aren't core or that you don't recognize.

Replaced /modules/user with

kbettis - August 28, 2008 - 17:21

Replaced /modules/user with a fresh copies and still the same thing...

So something has to be hooking it. And there are a lot of modules in here.
But , I dont want to disable them all... is there a way to search out the hook.
Here is the list of modules

AdSense

Display Google AdSense ads on your site to earn revenue.

* Configure permissions
* AdSense clicks
* By day
* Google AdSense
* Top pages

Affiliate

Allows site owners to issue affiliate links to their partners

* Configure permissions
* Affiliates

Block

Controls the boxes that are displayed around the main content.

* Configure permissions
* Blocks
* Get help

Blog API

Allows users to post content using applications that support XML-RPC blog APIs.

* Blog APIs
* Get help

Buddylist

Users add other users to their buddylists.

* Configure permissions
* Buddylist
* Get help

Cart

Ecommerce shopping cart.

* Screen order

Contact

Enables the use of both personal and site-wide contact forms.

* Configure permissions
* Contact form
* Get help

EC Recurring

Enables recurring payments.

* Configure permissions
* Recurring products
* Schedules

FCKeditor

Enables the usage of FCKeditor (WYSIWYG) instead of plain text fields.

* Configure permissions
* FCKeditor
* Get help

Generic Product

Creates a generic product.

* Configure permissions

Google Sitemap

Creates an XML site map in accordance with the sitemaps.org specification.

* Configure permissions
* Google Sitemap

Image

Allows uploading, resizing and viewing of images.

* Configure permissions
* Image
* Get help

Image Gallery

Allows sorting and displaying of image galleries based on categories.

* Configure permissions
* Image galleries
* Image gallery

Mass Contact

Enables site administrator or privileged users to send mass e-mails to registered users. (This module will take advantage of the Token module, if it is installed and enabled, but does not require it.)

* Configure permissions
* Mass Contact form
* Get help

Node

Allows content to be submitted to the site and displayed on pages.

* Configure permissions
* Content
* Content types
* Post settings
* Search content
* Get help

Meta tags

Allows users to add meta tags, eg keywords or description.

* Configure permissions
* Meta tags

Pathauto

Provides a mechanism for modules to automatically generate aliases for the content they manage.

* Configure permissions
* Pathauto
* Get help

phpbb

Integration with phpBB

* Configure permissions
* phpBB settings

Product API

Creates products for ecommerce.

* Configure permissions
* Products

Search

Enables site-wide keyword searching.

* Configure permissions
* Search settings
* Top search phrases
* Get help

System

Handles general site configuration for administrators.

* Configure permissions
* Administration theme
* Clean URLs
* Date and time
* Error reporting
* File system
* Image toolkit
* Modules
* Performance
* RSS publishing
* Site information
* Site maintenance
* Status report
* Themes
* Get help

Taxonomy

Enables the categorization of content.

* Configure permissions
* Categories
* Get help

Taxonomy redirect

Allows the admin to override where taxonomy term links go.

* Taxonomy redirect

User

Manages the user registration and login system.

* Configure permissions
* Access control
* Access rules
* Roles
* Search users
* User settings
* Users
* Get help

Views UI

The Views UI module allows you to create and edit views.

* Configure permissions
* Views
* Get help

I am just going to blow and

kbettis - August 28, 2008 - 19:05

I am just going to blow and load with a fresh new up to date copy of drupal, instead of picking up after the previous webmaster.

It may be a good solution if

feloescoto - August 29, 2008 - 03:14

It may be a good solution if you don't really have a lot of content in the website and if the previews webmaster changed a lot of things.

I would also look into the index.php, the redirection may be done from there too, I could not see a module that displays that alternative front page when you access the site for the first time, maybe both redirections are set at index level.

http://inTribu.com

 
 

Drupal is a registered trademark of Dries Buytaert.