• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Redirect to /index.php upon upload + Admin error

Status
Not open for further replies.

Shan

💖 Chevereto Fan
Issue #1

Okay so a while ago I had a weird issue then when an image was uploaded it would redirect to http://mysite.com/i/index.php instead of redirecting to the image viewer.

Now there are 2 circumstances in this, the first is that the image will be uploaded and will redirect to /i/index.php (giving a 404), and the second is that the image won't be uploaded but will still redirect.

Now this doesn't happen all the time, possibly once every few days (I upload a lot of images) and I have had others report of the same issue.

FYI: I change the view url from /image/ to /i/ to make the URL much smaller.

Issue #2

The second issue is very common and annoying. It's not stopping anyone, and it ONLY affects the admin (me).

The problem is that sometimes the admin page will redirect to /admin/index.php (which will give a Permission Denied error) instead of simply /admin/.

Now my admin directory is protected by .htaccess as well as the chevereto login to make it more secure.

For me to view the admin directory, I will have to manually type in /admin/ after I've logged in with the .htaccess. This also doesn't happen all the time. Right when I wanted to reproduce the bug, it is no longer occuring (although It was before), and will most definitely happen earlier.


Thanks!
 
Issue #1
Chevereto issues the redirection with javascript using this code:
Code:
next_url = "<?php echo __CHV_BASE_URL__.__CHV_VIRTUALFOLDER_IMAGE__; ?>/"+ImagesUp;

So it's impossible that the redirection goes to /index.php because the script uses http://yoursite.com/<virtual folder>/<image id> The only reason that should explain "/index.php" there is that either you modify the code or you override the base url. Is possible that the redirection is being sent to http://yoursite.com/index.php/<virtual folder>/<image id> and in that case the script will display the main upload page but preserving the url (just try it on the demo).

Issue #2
Main admin page is not /admin/index.php is just /admin and there is also pretty weird that the script redirect you to index.php because the system just doesn't use index.php on any part of the request urls, or in any part actually.

Conclusion
I believe that the problem is that you have done things that have change the way that the script use to handle the requests. It could be a server issue that is causing this weird behavior but I can't tell... Actually I can't tell the actual problems if you don't give me the site url because I need to investigate it more.

I believe that the only way to know what is happening is by sending me FTP site details.
 
Issue #1
Chevereto issues the redirection with javascript using this code:
Code:
next_url = "<?php echo __CHV_BASE_URL__.__CHV_VIRTUALFOLDER_IMAGE__; ?>/"+ImagesUp;

So it's impossible that the redirection goes to /index.php because the script uses http://yoursite.com/<virtual folder>/<image id> The only reason that should explain "/index.php" there is that either you modify the code or you override the base url. Is possible that the redirection is being sent to http://yoursite.com/index.php/<virtual folder>/<image id> and in that case the script will display the main upload page but preserving the url (just try it on the demo).

Issue #2
Main admin page is not /admin/index.php is just /admin and there is also pretty weird that the script redirect you to index.php because the system just doesn't use index.php on any part of the request urls, or in any part actually.

Conclusion
I believe that the problem is that you have done things that have change the way that the script use to handle the requests. It could be a server issue that is causing this weird behavior but I can't tell... Actually I can't tell the actual problems if you don't give me the site url because I need to investigate it more.

I believe that the only way to know what is happening is by sending me FTP site details.

No I haven't modified the code (atleast I haven't think I have). Unless it has something to do with the fact that the site uses CDN (which it shouldn't).

ANyway I've sent the FTP.
 
Hi, is this problem solved? Please let me know if you need more help. ;)
 
Yeah it's solved. It was my browser. (really weird).

Sorry, should have notified you earlier.
 
Status
Not open for further replies.
Back
Top