I cant access my admin panel

http://unlockme.epizy.com/index.php/admin

in xampp it is working fine

http://localhost/unlock/index.php/Admin
this is xampp url

Is better for you to show the root directory contents in order to help you figure out the admin location

D:\xampp\htdocs\unlock\application\views\admin

We cannot see your computer’s files if you give us the path to that as we don’t have access to your files.

This link leads me to an error 500. Could you turn on PHP errors in the control panel and show us the error you are getting?

5 Likes

turned on error but now it is only black screen

What is “http://unlockme.epizy.com/index.php/admin” supposed to show?

admin panel

Is it supposed to show a login or just an admin panel? Are you sure there is code in “index.php/admin/”? If so, could you show us?

1 Like

it should show admin login in xampp when i enter this url it show admin login

in infinity when i enter the same it change the url to this

http://unlockme.epizy.com/index.php/admin/session/?return_url=http://unlockme.epizy.com/index.php/admin.html

XAMPP is software to run code locally which is not the same as here. Could you show us the contents of your code?

1 Like
<div class="loginBlock" id="login" style="display: block;">

    <h1>Welcome! Please Sign In</h1>

    <div class="dr"><span></span></div>

    <div class="loginForm">

        <?php $this->load->view('admin/includes/message'); ?>

        <?php echo form_open('admin/login', array('class' => 'form-horizontal')); ?>

            <input type="hidden" name="return_url" value="<?php echo $this->input->get('return_url') ?>" />

            <div class="control-group">

                <div class="input-prepend">

                    <span class="add-on"><span class="icon-envelope"></span></span>

                    <input type="text" name="Email" id="Email" placeholder="Email" value="<?php echo set_value('Email') ?>" class="validate[required]"/>

                </div>                

            </div>

            <div class="control-group">

                <div class="input-prepend">

                    <span class="add-on"><span class="icon-lock"></span></span>

                    <input type="password" name="Password" id="Password" placeholder="Password" class="validate[required]"/>

                </div>

            </div>

            <div class="row-fluid">

                <div class="span8">

                    <div class="control-group" style="margin-top: 5px;">

                        <!--<label class="checkbox"><input type="checkbox"> Remember me</label>-->                                                

                    </div>                    

                </div>

                <div class="span4">

                    <button type="submit" class="btn btn-block">Sign in</button>      

                </div>

            </div>

        <?php echo form_close(); ?>  

        <div class="dr"><span></span></div>

        <div class="controls">

            <div class="row-fluid">

                <div class="span6">

                    <button class="btn btn-link btn-block" onClick="loginBlock('#forgot');">Forgot your password?</button>

                </div>

                <div class="span2"></div>

                <div class="span4"></div>

            </div>

        </div>

    </div>

</div>    



<div class="loginBlock" id="forgot">

    <h1>Forgot your password?</h1>

    <div class="dr"><span></span></div>

    <div class="loginForm">            

        <?php echo form_open('admin/session/forgot_password', array('class' => 'form-horizontal')) ?>

            <p>This form help you return your password. Please, enter your password, and send request</p>

            <div class="control-group">

                <div class="input-prepend">

                    <span class="add-on"><span class="icon-envelope"></span></span>

                    <input type="text" placeholder="Your email" name="Email" value="<?php echo set_value('Email') ?>"/>

                </div>                

            </div>                

            <div class="row-fluid">

                <div class="span8"></div>

                <div class="span4">

                    <button type="submit" class="btn btn-block">Send request</button>      

                </div>

            </div>

        <?php echo form_close(); ?>  

        <div class="dr"><span></span></div>

        <div class="controls">

            <div class="row-fluid">                    

                <div class="span12">

                    <button class="btn btn-link" onClick="loginBlock('#login');">&laquo; Back</button>

                </div>

            </div>

        </div>

    </div>

</div>

admin login page

I’m afraid I can’t figure this out, your link is redirecting me to “http://unlockme.epizy.com/index.php/admin/session/?return_url=http://unlockme.epizy.com/index.php/admin.html” which I believe shouldn’t happen.

I believe this would not work

due to this

This is only tip of the iceberg. What works on localhost may not work on actual hosting.
You got to figure on your own

5 Likes

so should i remove this

You just have to rename the folder.

2 Likes

Having a folder includes in the views directory is fine. The files cannot be opened directly from a web browser, but you don’t want people to do that anyways if the files are templates that are populated by a framework. You actually want those files to be blocked, which is exactly what this does.

As for the issue itself, I’m not sure. I’ve never worked with CodeIgniter. I don’t know how you normally setup controllers and views with it, and I don’t know how it handles errors.

At worst, you can add a bunch of echo or var_dump statements through the code to see if it hits the controllers and views it should.


Actually, there are some errors being recorded in the htdocs/application/logs folder. It’s a deprecation error for the session controller, but IIRC this error may actually break your class. Maybe fixing that error helps.

5 Likes

btw. How many places do you have a login?

in each dir a copy of a copy

5 Likes

can you tell me how to how this error

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.