I'm trying to add a page and keep the logedin user in the same website with the same session informations the user had .. like this
but I'm getting this error :
" Internal server error
This website might have encountered a technical problem and cannot fullfill your request.
Please try again later.
Error code 500 (Internal Server Error) "
as a try from me to keep the session information and the logedin user , the new page I'm trying to add include this code ..
" < ? php
include('system/start.php'); // Includes session
if(isset($SESSION['OSSNUSER'])){
< p > your new page works good.. keep the good work. < /p >
}
else {
redirect('login?error=1');
}
?> "
note: I even tried to install new component like HelloWorld, it didn't work .. I'm working on v1.8
any suggestions and help are appreciated .. thank you
Please see: http://community.opensource-socialnetwork.org/component/view/167/hello-world
Don't create pages with custom php files.
You cannot use 'if(isset($SESSION['OSSNUSER']))' directly in your code, you should use 'if(ossn_isLoggedin())'
Also you are calling $user variable which is not set. You should use ossnloggedinuser() for getting loggedin user data. like ossnloggedinuser()->fullname;
thank you Zet Man for your replay
**I appreciate your help .. the page has no error 500 but I'm facing another problem now **
have a look
the OSSN_USER interpreted as Array "that seem so strange for me" (-_-)
non of the data has been processed .. it gives me so many question marks ??????????
about the errorlog file I found no trace to such file any where ... I even looked in ossndata directory .. in case you wondering Error logging is Enable in the Admin's Dashboard basic settings ;)
error 500s are resulting from syntax errors most of time.
no echo before "your page works good" and no ";" ending in this case.
Ossn comes with an error_log file in the root directory. Enable Error logging in the Admin's Dashboard basic settings and simply have a look. :)
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)