Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2014, 04:56 PM
Isura Isura is offline
Member
 
Join Date: Jun 2011
Posts: 38
Gender: Female
Credits: 8,132
Isura is on a distinguished road
Default Problem with the class controller

<<edit -- the first one was a bit confusing (sorry, my bad)

Normally, when I try to open an non-extisting page the script will show the index-page. But if I add a few more things in the url I get a blank page with only an error message. I would really like it, if the site would still show the index page instead.

Here as an example:

http://creaturesoflessikor.de/xyz
--> this is the normal script reaction when you enter an non exist page: it shows the index page.

But if you enter a few more things to the url:
http://creaturesoflessikor.de/xyz/xyz/xyz
It will show you a blank page with only the error message. But I would prefer if it will still show the index page instead.

Hopefully the problem is now a bit clearer. Sorry, for the misunderstanding.

Sorry, english isn't my native language.

edit>>

Hello

I notice a problem with the controller class. Normally if you want to open a page which doesn't exist, it shows you the index page. But if you add a few more things to the url you can provoke a fatal error.

For example:
The page xyz.php doesn't exist.

if I enter:
mysite.com/xyz/
it shows the index page.

same with
mysite.com/xyz/argument1--> shows the index page

but if I add a second argument:
mysite.com/xyz/argument1/argument2
I get an error:
Fatal Error: Class XyzController either does not exist, or has its include path misconfigured!

Know someone a good solution for this problem?
__________________

Last edited by Isura; 04-09-2014 at 12:52 PM.
Reply With Quote
  #2  
Old 04-08-2014, 08:18 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,800
Hall of Famer is on a distinguished road
Default

Well you need to define class constants to represent arguments in the url.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 04-09-2014, 05:48 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,518
Kyttias is on a distinguished road
Default

Why -are- you trying to add more arguments to the url/point to a page that does not exist? In such a location existed, it wouldn't deliver an error... right?
Reply With Quote
  #4  
Old 04-09-2014, 12:32 PM
Isura Isura is offline
Member
 
Join Date: Jun 2011
Posts: 38
Gender: Female
Credits: 8,132
Isura is on a distinguished road
Default

No, you getting it wrong.
I don't try to add arguments to an non-existing url. I only don't like it, that you get an blank page with only the error message when you enter such combination in the url. I would prefer that the script shows the index page instead.

maybe it will be clearer with this example and some links:

http://creaturesoflessikor.de/xyz
--> this is the normal script reaction when you enter an non exist page: it shows the index page.

But if you enter a few more things to the url:
http://creaturesoflessikor.de/xyz/xyz/xyz
It will show you a blank page with only the error message. But I would prefer if it will still show the index page instead.

Hopefully the problem is now a bit clearer. Sorry, for the misunderstanding.

Sorry, english isn't my native language.
Reply With Quote
  #5  
Old 04-09-2014, 03:21 PM
Zyraph Zyraph is offline
Member
 
Join Date: Mar 2014
Location: Indianapolis, IN
Posts: 36
Gender: Male
Credits: 4,336
Zyraph is on a distinguished road
Default

I think I know what you're saying. You're wanting the site to show the index page if a url doesn't exist. Basically, let's say someone went to http://creaturesoflessikor.de/xyz/xyz/xyz and instead of being directed to an error page, you want them redirected to http://creaturesoflessikor.de

Is that correct? If so, you would probably have to use a .htaccess file in the main directory. I'm not sure what specifically to put in, but I know that's where you'd want to look.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FormBuilder class? Kyttias Questions and Supports 2 07-04-2014 04:14 PM
Problem: smarty class 1.3.4 draugluin Questions and Supports 8 11-15-2013 02:29 AM
Critical Errors (PDO Class not Found) LucasA33 Questions and Supports 2 11-21-2012 05:38 PM


All times are GMT -5. The time now is 04:06 PM.

Currently Active Users: 9407 (0 members and 9407 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636