OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



how to make it working

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

how to make it working

Postby thomas.thomasabraham » Thu Jan 12, 2006 9:17 am

Hai

I am working on OJS 2.0.1. As the part of the project , we have to
add some more fields for the user..so i have edited in the following filed ..
but after doing this, i have just resterted the system , while i am trying to
login or to register in a JOURNAL it just gives a blank page .... like for
example

for register in a jounal :: http://localhost/ojs201/index.php/jog/user/register
i gaves a blank .. not dispaying the template
for login::http://localhost/ojs201/index.php/index/login/signIn.. same thing
happens..

The following files i have edited .whether i have to take care of any other files.

the file edited for the database ::
/var/www/html/ojs201/classes/user/UserDAO.inc.php

the file edited for making the get and set funtion::
/var/www/html/ojs201/classes/user/User.inc.php

the file edited for displaying during the My Profile display ::
/var/www/html/ojs201/classes/user/form/ProfileForm.inc.php

the file edited for Register a user::
/var/www/html/ojs201/classes/user/form/RegistrationForm.inc.php

profile.tpl
other than this files i have edited the templates files too..
they are
/var/www/html/ojs201/templates/user/profile.tpl

/var/www/html/ojs201/templates/user/register.tpl

i have added one more column in the database for the tables users too

so for adding new fields for the user while he registering .. whther the
method i have done wrong or in what way i have to make it working.

with regards

Thomas Abraham
thomas.thomasabraham
 
Posts: 4
Joined: Thu Oct 06, 2005 11:57 pm
Location: india

Postby asmecher » Thu Jan 12, 2006 10:40 am

Hi Thomas,

Blank pages can sometimes be displayed when there's a typo in the code that PHP is having trouble parsing -- for example, a never-ending comment. I would suggest double-checking the PHP files you modified for typos; Smarty templates should always present an error message if there's a problem, so I wouldn't worry about those changes.

Depending on your server configuration, error messages might not be displayed to the client; check your PHP configuration to ensure that you're looking in the right place for errors messages.

Finally, don't forget the built-in database schema management tools. OJS maintains its schema in dbscripts/xml/ojs_schema.xml, so make sure you add the fields there too. You can use this XML file to update the database structure by running tools/upgrade.php.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron