Osclass forums

Support forums => Installation / Update help => Topic started by: HBC_News on May 17, 2013, 09:25:35 pm

Title: Can't login to my admin panel - Help please
Post by: HBC_News on May 17, 2013, 09:25:35 pm
I seem to have installed OSClass correctly but it won't let me login to my admin panel or register a test account. The database is setup correctly and I know the username and password are correct.

What gives?

Thank you,

     Todd
Title: Re: Can't login to my admin panel - Help please
Post by: sirjones on May 18, 2013, 04:18:49 pm
yes the same case happen to me, any help plz?
Title: Re: Can't login to my admin panel - Help please
Post by: Legion on May 23, 2013, 12:29:05 am
check your config.php and its file permission
Title: Re: Can't login to my admin panel - Help please
Post by: sirjones on May 28, 2013, 08:39:11 pm
thank You Legion

I can loged in if i connected to internet
any idea?
Title: Re: Can't login to my admin panel - Help please
Post by: joecarideo on June 01, 2013, 02:08:17 am
I've checked the config.php permission and changed it to 644 from 666. Nothing seems to allow me to log in to the admin dashboard. Can't register new test account either. Any other suggestions?
Title: Re: Can't login to my admin panel - Help please
Post by: Anti-NWO on June 06, 2013, 07:32:10 am
HERE'S YOUR SOLUTION, BUT FIRST A FEW COMMENTS:

It doesn't have anything to do with permissions. It's the code. I'm sorry to have to say this, but it's typical for a fresh install of OSClass to not work correctly. Every version I've tried, fails to allow you into the admin panel after installing. Also, the search function appears to be completely broken.

Solution for accessing admin panel:
Replace the code at the top of your config file with the following:
<?php
    session_save_path ( ABS_PATH . 'oc-content/uploads/' );
/**
 * The base MySQL settings of Osclass
 */
define('MULTISITE', 0);

Now: Enter your admin user and pass. You'll probably get a CSFR token error now. Just enter your user and pass again, and you SHOULD get in....

If your version of 3.1.2 is like mine, your search will still be broken, resulting in "page not found" errors every time you perform a search, even when the search word exists...

BETTER SOLUTION:
Use version 3.0.2. It's the most functioning version I've found. But, you'll also have to modify your config.php file to access your admin panel in that version as well.

You'll need to ad the following to line #2 of that config file:
    session_save_path ( ABS_PATH . 'oc-content/uploads/' );

You can see my version of 3.0.2 running here: http://pmclassifieds.com (http://pmclassifieds.com)

And if you want to see the search function of 3.1.2 in action,  you can access it here: http://pmclassifieds.com/test (http://pmclassifieds.com/test)

Run the search on both and you'll see what I mean. I don't know what else is wrong with 3.1.2 because I'm already done testing it.

I hope the info helps.

Good luck.

Tom
Title: Re: Can't login to my admin panel - Help please
Post by: joelle on June 06, 2013, 11:53:11 pm
Hello,

Ok, this question may sound dumd to you lol, but I am a novice. Where and how do I access that config file? I have just uploaded Osclass.3.1.2 and when I clicked on the "finish and access database" link after running my Install, I just get a black page. No Error message, nothing. Just a boring black page. How do I sort it out please?
Thnx
Title: Re: Can't login to my admin panel - Help please
Post by: joelle on June 07, 2013, 12:22:46 am
Lol oki guys,

Found the Config file into my webroot files, duh!!. Lol.

 So I copy/paste the instructions, edited the file and saved this :

<?php
session_save_path ( ABS_PATH . 'oc-content/uploads/' );
/**
 * The base MySQL settings of Osclass
 */
define('MULTISITE', 0);

I checked that database name and username were correct, so did not change that.

But I still cannot access my Admin page. Am I doing something wrong?

Thank you so much!

Joelle
Title: Re: Can't login to my admin panel - Help please
Post by: Aficionado on June 07, 2013, 09:40:44 am
Hello,

Ok, this question may sound dumd to you lol, but I am a novice. Where and how do I access that config file? I have just uploaded Osclass.3.1.2 and when I clicked on the "finish and access database" link after running my Install, I just get a black page. No Error message, nothing. Just a boring black page. How do I sort it out please?
Thnx

Guys why don't you ask for help from your hoster ? All those installation problems are 100% from the hosting plan.

Title: Re: Can't login to my admin panel - Help please
Post by: TechGuy23 on June 08, 2013, 02:11:40 pm
if your getting more problems logging into your account and your a MySql savvy you can always go and edit the database admin tables
Title: Re: Can't login to my admin panel - Help please
Post by: arun on September 25, 2013, 09:53:47 pm
hi
I am also facing same problem  i changed the config file also but i stil cnt login after filling user name and password it only blank page.. can any one help me out??
Title: Re: Can't login to my admin panel - Help please
Post by: ugogo.info on September 26, 2013, 11:06:23 pm
Hi Arun

A suggestion, not sure if you tried this - can you set your php settings to debug, maybe you will get an error message then you can figure out what the problem is.

I set mine to debug via my cpanel on host, but if you can't do that you can contact your host to do it. 

Then if you don't know what the error means,come and paste it here for someone to help you.
Title: Re: Can't login to my admin panel - Help please
Post by: arun on September 28, 2013, 09:14:27 pm
Notice: Trying to get property of non-object in /home/ourads/public_html/oc-includes/osclass/model/Admin.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/ourads/public_html/oc-includes/osclass/utils.php:1656) in /home/ourads/public_html/oc-includes/osclass/utils.php on line 1658


Hi Im getting these errors after i try to log in admin page
Title: Re: Can't login to my admin panel - Help please
Post by: ni3lalge on October 29, 2013, 08:36:55 pm
Anti-NWO : Thanx dude, your idea worked...
Title: Re: Can't login to my admin panel - Help please
Post by: arun on December 21, 2013, 06:48:24 pm
No One to help ??
Title: Re: Can't login to my admin panel - Help please
Post by: mytechjob on December 22, 2013, 08:31:40 am
Did you try going to http://www.YourDomainName.com/oc-admin?

That url should take you to the admin login screen. I am using version 3.3.2
Title: Re: Can't login to my admin panel - Help please
Post by: virgo on February 09, 2014, 08:41:57 am
HI all,

I all have the same problem, my hosting company tried everything with no luck, i tried changing password via Mysql quries still i cant log in.
This is what my hosting technicians tried :

---
Unfortunately, all my efforts to restore your admin access failed. I tried to restore your database from a backup created before the migration - no success. I installed a fresh osclass copy and copied the admin user from the db to your existing one, again no success.

I suggest you to contact a professional developer or the osclass support.

If the data recreation won't be a problem, we can re-install your application so you can rebuild the site from scratch.

You can request a free script installation via your Siteground User Area > Support > Open a support ticket > Script installation. During the ticket submission you will have to fill a form with the details required for the script installation.

If there is anything else that we can help you with, please create a new ticket anytime!

Best Regards,

Yavor I.
Technical Support Team


---

Please can anyone help ?
Title: Re: Can't login to my admin panel - Help please
Post by: ccoaston on February 13, 2014, 09:16:28 pm
I have tried all these fixes and nothing is working. Why can't I simply log into my admin account to get started.
Title: Re: Can't login to my admin panel - Help please
Post by: aide2001 on February 13, 2014, 11:45:12 pm
Please can I have your http://www.yoursite
and a copy of your config.php file

I will help
Title: Re: Can't login to my admin panel - Help please
Post by: ccoaston on February 14, 2014, 08:40:17 pm
Please can I have your http://www.yoursite
and a copy of your config.php file
or PM aide2001@gmail.com with this
I will help

Thanks for all you help!!! here what I did:

ok got it. i had to  add another admin user, went to the admin section of my database. Then went to this site http://www.sha1-online.com/ (http://www.sha1-online.com/) to create a password in SHA1 format. Now im able to login without any issues. will update the forum and give you props
Title: Re: Can't login to my admin panel - Help please
Post by: Emanuel on March 03, 2014, 03:23:54 pm
yes the same case happen to me, any help plz?
Title: Re: Can't login to my admin panel - Help please
Post by: aide2001 on March 03, 2014, 06:09:30 pm
see reply #19
any problems, PM me and I can help further
Title: Re: Can't login to my admin panel - Help please
Post by: arvind5lib on February 23, 2015, 12:13:50 am
The below code works by pasting in config.php. Thanks

<?php
session_save_path ( ABS_PATH . 'oc-content/uploads/' );
/**
 * The base MySQL settings of Osclass
 */
define('MULTISITE', 0);
Title: Re: Can't login to my admin panel - Help please
Post by: adleee84 on September 05, 2016, 10:26:53 am
im on osclass 3.6 and this issue still here  :(
Title: Re: Can't login to my admin panel - Help please
Post by: Aficionado on September 05, 2016, 01:26:56 pm
im on osclass 3.6 and this issue still here  :(

There is absolutely NO issue in Osclass related to this thread.

IT IS A HOSTING PROBLEM. Ask your Hosting Support.

Title: Re: Can't login to my admin panel - Help please
Post by: aluta on September 25, 2017, 02:02:20 pm
HERE'S YOUR SOLUTION, BUT FIRST A FEW COMMENTS:

It doesn't have anything to do with permissions. It's the code. I'm sorry to have to say this, but it's typical for a fresh install of OSClass to not work correctly. Every version I've tried, fails to allow you into the admin panel after installing. Also, the search function appears to be completely broken.

Solution for accessing admin panel:
Replace the code at the top of your config file with the following:
<?php
    session_save_path ( ABS_PATH . 'oc-content/uploads/' );

This really worked for me, thanks a lot, I mailed osclass twice, I only got reply form autoresponder, they never render solution, I got this issue when we are about to launch and they never replied, thanks again for the help, I appreciated.
/**
 * The base MySQL settings of Osclass
 */
define('MULTISITE', 0);

Now: Enter your admin user and pass. You'll probably get a CSFR token error now. Just enter your user and pass again, and you SHOULD get in....

If your version of 3.1.2 is like mine, your search will still be broken, resulting in "page not found" errors every time you perform a search, even when the search word exists...

BETTER SOLUTION:
Use version 3.0.2. It's the most functioning version I've found. But, you'll also have to modify your config.php file to access your admin panel in that version as well.

You'll need to ad the following to line #2 of that config file:
    session_save_path ( ABS_PATH . 'oc-content/uploads/' );

You can see my version of 3.0.2 running here: http://pmclassifieds.com (http://pmclassifieds.com)

And if you want to see the search function of 3.1.2 in action,  you can access it here: http://pmclassifieds.com/test (http://pmclassifieds.com/test)

Run the search on both and you'll see what I mean. I don't know what else is wrong with 3.1.2 because I'm already done testing it.

I hope the info helps.

Good luck.

Tom
Title: Re: Can't login to my admin panel - Help please
Post by: Aficionado on September 25, 2017, 02:29:49 pm
Again, this is a POOR hosting setup.

And the code suggested (the session save path) is just a WORKAROUND.

I wish people stoped using all kind of crappy hosting.