PDA

View Full Version : Keep getting '404 Error' when trying to install MAS v1.3.3


kyrctyn
07-21-2013, 04:29 PM
I have gone through the tutorial on how to install v1.3.3 SEVERAL times today, but I keep getting the '404 Not Found' error. I have gone through the files and found that 'config_adopts.php' (which I have changed to 'config.php') is empty... I have tried redownloading it, but it was still empty. Can someone please help, I want to get my site up as soon as possible. <:(

Hwona
07-21-2013, 07:32 PM
Did you remember to change the permissions?

kyrctyn
07-21-2013, 10:08 PM
Yes. I've changed the permissions of everything that needed them to be changed.

Hwona
07-21-2013, 10:28 PM
Well um, it did you upload the files INSIDE the mys script? If you just unzipped and added the folder to public html, it might not work.

I do remember having this issue before, but I don't know how I fixed it.

kyrctyn
07-21-2013, 10:45 PM
What do you mean by upload? I've installed an older version of the v1.3.x series on a different site and I didnt need to do anything like that :/ And I only did what the v1.3.3 install tutorial said to do.

Hwona
07-21-2013, 11:00 PM
Don't you have to upload the files onto the host?

Hall of Famer
07-21-2013, 11:35 PM
If the config file is empty, you've clearly not yet installed the script.

kyrctyn
07-22-2013, 10:35 AM
you've clearly not yet installed the script.

Thats the thing, I keep getting a '404 Not Found' error when I try to do that :/

Hall of Famer
07-22-2013, 04:44 PM
Did your site/server work without this script? The way you described your issue was somewhat confusing, we need to find out where you actually are at. First of all, you have to upload files to your server through FTP. Second, you need to run the installer script. Lemme know which step you are stuck.

kyrctyn
07-22-2013, 10:29 PM
Yes and I did. I uploaded the files via FileZilla, gone through the files and changed the names/permissions of those that needed to be changed, and tried to install using http://hatchingmagic.x10.mx/install/index.php (as instructd here (http://www.mysidiaadoptables.com/forum/showthread.php?t=4057)), but I kept getting a '404 Not Found' :/

Hall of Famer
07-23-2013, 02:53 PM
I checked your site, it looks to me that you have uploaded the entire folder named 'Mysidia Adoptables v1.3.3' to your site, and therefore the actual installation path is:

http://hatchingmagic.x10.mx/Mysidia Adoptables v1.3.3/install/index.php

I am not sure whether you like it this way though, perhaps it makes better sense to upload whatever is inside the folder Mysidia Adoptables v1.3.3 to your server rather than the folder itself?

kyrctyn
07-24-2013, 11:09 AM
Okay, I'll try that, thank you ^^

Hwona
07-24-2013, 11:24 AM
Um, just to let you know, the install thing is popping up - it works. :3

kyrctyn
07-24-2013, 11:35 AM
Yeah, I just fixed it, but now Im getting a '404 not found' when trying to log in :/

Hwona
07-24-2013, 11:50 AM
Um, since you're using 1.3.3, are you getting any wierd header errors?

Edit: Yeah, replace your class_file.php file with this:
<?php

/**
* The File Class, extending from SplFileInfo class. It is one of Mysidia system core classes.
* It acts as an initializer and wrapper for Mysidia-specific files.
* It implements PHP basic file functions, and adds enhanced features upon them.
* Similar to Database class, it does not extend from Abstract Core class.
* An instance of File class is generated upon Mysidia system object's creation.
* This specific instance is available from Registry, just like any other Mysidia core objects.
* @category Resource
* @package Core
* @author Hall of Famer
* @copyright Mysidia Adoptables Script
* @link http://www.mysidiaadoptables.com
* @since 1.3.2
* @todo Complete the method move().
*/

class File extends SplFileInfo implements Initializable{

/**
* The extension property, it stores the extension info of this current file.
* @access private
* @var String
*/
private $extension;

/**
* The base property, which defines the base file name.
* @access private
* @var String
*/
private $base;

/**
* Constructor of File Class, it initializes basic file properties.
* @access public
* @return Void
*/
public function __construct($fileurl){
parent::__construct($fileurl);
$this->initialize();
}

/**
* The initialize method, which handles basic include path operations.
* @access public
* @return Void
*/
public function initialize(){
$this->extension = ".".$this->getExtension();
if($this->checkExtension()) $this->base = parent::getBasename($this->extension);
}
/**
* The getBasename method, overrides SplFileInfo's getBasename method and offers its own definition.
* @access public
* @return Void
*/
public function getBasename( $suffix = NULL){
return $this->base;
}


/**
* The checkExtension method, it checks whether the file extension is supported in this system.
* This method returns a boolean value TRUE upon successful extension validation.
* @access public
* @return Boolean
*/
protected function checkExtension(){
$extensions = array(".php", ".js", ".css", ".html", ".htm", ".xml", ".yaml", ".tpl", ".jpg", ".gif", ".png", ".txt", ".ttf", ".psd", ".db", ".htaccess");
if(!in_array($this->extension, $extensions)) throw new Exception('Invalid file extension.');
else return TRUE;
}

/**
* The move method, which can move a file to desired directory.
* This is a feature planned but not yet developed in current version.
* @access public
* @return Void
*/
public function move(){

}
}
?>

kyrctyn
07-24-2013, 12:08 PM
I just did what you said to do, but Im still getting the error when I try to login :/

Hall of Famer
07-30-2013, 03:02 PM
Well I think shes having a different problem, the url aint working for her. If shes still struggling next week, I will see if I can access her server/site to help her out.

pachoofoosh
08-02-2013, 10:12 AM
I got the same error as you when I tried to install the script a couple of weeks ago. c:

I noticed that my host had switched my php version back to 5.2 for some reason and I didn't realize it. I changed my php version back and reinstalled the script under a subdirectory, and it worked then.
You could check if your php version is indeed version 5.3, and if it is, try reinstalling your site in a subfolder. c:
If you install it into a subfolder, you can easily have your users redirected from site.com to site.com/whatever by creating an index.php in public_html and adding this:
<?php
header('Location: http://www.yoursitehere.com/yoursubfoldername');
?>

If that doesn't work, try asking your host if mod_rewrite is enabled, and if it isn't, if they can enable it for you. c:

kyrctyn
10-12-2015, 02:48 AM
Goodness when was the last time i tried MysidiaAdopts. Im glad i found this cus Im having the 404 Error AGAIN. I'll follow what's here just to make sure its working (hopefully) and will post again if i have MORE issues ^^; But luckily I have a friend that codes (somewhat) so hopefully it wont be as hard to fix things as before :happyc:

EDIT
Okay, fixed the 404 issue by NOT uploading the whole file, but now i get this:
Fatal error: Call to undefined method File::getExtension() in /home/a7811586/public_html/classes/class_file.php on line 51

Hall of Famer
10-12-2015, 03:53 AM
Are you still using Mys v1.3.3? The version v1.3.4 has been released quite some time ago, and its recommended that you use the new version.

kyrctyn
10-12-2015, 06:48 AM
I might go to 1.3.4, but my friend and I didnt know if some "big" issues people have been having have been resolved yet. I might update it to see how it goes though. I honestly wanted to 1.3.4 because of feature updates, but my friend said we should try 1.3.3 first since we were new to it and php coding.

But I'll look up how to update and try it out :happyc:

EDIT: Okay, I updated to 1.3.4, but found some issues.

1)My site hoster only had PHP 5.2.*

2)4 errors came up after upgrading. The last one I believe came from #1, but the other three spawned from upgrade.php.

Warning: constant() [function.constant]: Couldn't find constant DBHOST in /home/a7811586/public_html/install/upgrade.php on line 13
Warning: constant() [function.constant]: Couldn't find constant DBNAME in /home/a7811586/public_html/install/upgrade.php on line 13
Warning: constant() [function.constant]: Couldn't find constant PREFIX in /home/a7811586/public_html/install/upgrade.php on line 14

I cant tell if these are actual errors or from the 5.2.* PHP as well. But due to the PHP verion of the hosting being 5.2.*, I'll have to stick with 1.3.3 or lower :cfrown:

EDIT 2: Okay, so after deleting EVERYTHING from the server file and reinstalling 1.3.3, its working fine. But I need to ask, what do i put in the database info during installation?

Hall of Famer
10-12-2015, 01:43 PM
umm I see, so the PHP version is the problem. You need to tell your webhost to provide PHP 5.3, or you should just move away to a different webhost. Its inexcusable for any webhosts to be stuck on PHP 5.2 nowadays. Its 2015, not 2010 anymore. Also the next version will be incompatible with PHP 5.2 either.

kyrctyn
10-12-2015, 03:48 PM
Im using 000webhost.com right now, so I might give 10x a try.

Hall of Famer
10-12-2015, 03:54 PM
Actually its not recommended to use 000webhost, since their terms of services do not allow you to run browser game script like Mysidia Adoptables. If they find out that you are using this script, they may as well suspend your account, without even warning you.

I have a dedicated server right now, and I can host your site if you dont mind. Its free and you can have full access to cpanel and ftp as well. The only restriction is that you need to actively develop your site, as I will remove sites that are inactive for more than 30 days. Lemme know if you want to.

kyrctyn
10-12-2015, 04:25 PM
Since this is a collaboration project between my friends and I, I think the only reason we wouldnt be able to actively update/play is due to collage or work. But it would be nice to try to start the project and see where we can get with it :pleased:

Hall of Famer
10-12-2015, 04:33 PM
okay, no problem. If you want to, send me a private message about the name of your site, and your account/username. I will create it for you, and let you know about it once I set it up. It may take a few hours, since I will have dinner soon.