Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Feedback and Suggestions (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=25)
-   -   Need help! (http://www.mysidiaadoptables.com/forum/showthread.php?t=4815)

missie 04-15-2015 04:30 AM

Need help!
 
I used the forum tutorials and successfully installed the script! Or, at least, I think so ...

When I try to reach the site, I get this error message:

Parse error: syntax error, unexpected T_STRING in /home/a5842023/public_html/classes/resource/native/objective.php on line 3


This is the "objective.php"

PHP Code:

<?php

namespace Resource\Native;

/**
 * The Objective Interface, it is the interface that all Mysidia classes should implement minus a few special cases.
 * It defines a standard interface for Mysidia Objects, the root class Object also implements this interface.
 * This interface is very useful for classes that extend from PHP's built-in classes, as they cannot extend from root Object Class.
 * By Implementing Objective interface, objects of the specific class can be used in Collections Framework.
 * @category Resource
 * @package Native
 * @author Hall of Famer 
 * @copyright Mysidia Adoptables Script
 * @link http://www.mysidiaadoptables.com
 * @since 1.3.3
 * @todo Not much at this point.
 *
 */
 
interface Objective{

    
/**
     * The equals method, checks whether target object is equivalent to this one.
     * @param Objective  $object     
     * @access public
     * @return Boolean
     */
    
public function equals(Objective $object);
    
    
/**
     * The getClassName method, returns class name of an instance. 
     * The return value may differ depending on child classes. 
     * @access public
     * @return String
     */    
    
public function getClassName();
    
    
/**
     * Magic method to_String() for Object class, returns object information.
     * @access public
     * @return String
     */    
    
public function __toString(); 
}
?>


Please help!!! :ohnoes:

Kyttias 04-15-2015 10:35 AM

What host are you on?
What version of PHP is your host using?
Other than your database username and password, which we don't need, can you post a copy of your inc/config.php file?

I've actually not seen anyone get this particular problem on a new install before before. I certainly don't see a T_STRING error there.

Hall of Famer 04-15-2015 11:19 AM

It seems that your webhost is not using PHP 5.3+, the T_STRING error clearly indicates that the server engine cannot tell the keyword 'namespace', which was added in PHP 5.3.0. If your server is running with PHP 5.2, you will have to upgrade or to move to a different host. In general, most shared webhosts allow clients to select the PHP version they can use, ranging from PHP 5.2 to PHP 5.5. If you cannot make the choice, you will have to move.

Kyttias 04-15-2015 11:34 AM

I figured that could be a possibility, but it's surprising, considering PHP 5.3 launched in 2009. What host would have such an outdated version? Is there anything else it could possibly be, if that's not the case?

missie 04-15-2015 01:51 PM

Quote:

Originally Posted by Hall of Famer (Post 32286)
It seems that your webhost is not using PHP 5.3+, the T_STRING error clearly indicates that the server engine cannot tell the keyword 'namespace', which was added in PHP 5.3.0. If your server is running with PHP 5.2, you will have to upgrade or to move to a different host. In general, most shared webhosts allow clients to select the PHP version they can use, ranging from PHP 5.2 to PHP 5.5. If you cannot make the choice, you will have to move.

I checked and it is 5.2 indeed... :ohnoes: I used 000webhost and it only provides that for free hosting. I feel so stuck. Any suggestions on where to move...?

Hall of Famer 04-15-2015 02:16 PM

I believe on 000webhost you can change the PHP version, send a support ticket and they will do it for you. If it takes them too long to reply and you cannot wait, you may try moving to x10hosting. Note for some people, you will need to change a part of the code to have it work on x10hosting, but lettuce know once you get to that point.

Kyttias 04-15-2015 02:59 PM

000webhost also has strict rules, and it would be against their terms of service to install Mysidia - it is a game (no game scripts, rule 7) and has a shoutbox (no chat scripts, rule 5). If you disable the chat box and put up a notice big and large that your site is in development only and you plan on acquiring paid hosting through them eventually, then they might be willing to let your site stay up. I'd contact someone on their official forums to ask questions.

missie 04-15-2015 03:02 PM

Quote:

Originally Posted by Hall of Famer (Post 32290)
I believe on 000webhost you can change the PHP version, send a support ticket and they will do it for you. If it takes them too long to reply and you cannot wait, you may try moving to x10hosting. Note for some people, you will need to change a part of the code to have it work on x10hosting, but lettuce know once you get to that point.

Thank you so much!! :smile: x10hosting didn't work because of my country, but I actually did some more research and made my new site in Biz.nf and it seems to be working great! I'll let you know if I find myself in trouble again, haha. Thanx!

missie 04-15-2015 03:03 PM

Quote:

Originally Posted by Kyttias (Post 32293)
000webhost also has strict rules, and it would be against their terms of service to install Mysidia - it is a game (no game scripts, rule 7) and has a shoutbox (no chat scripts, rule 5). If you disable the chat box and put up a notice big and large that your site is in development only and you plan on acquiring paid hosting through them eventually, then they might be willing to let your site stay up. I'd contact someone on their official forums to ask questions.

Oh gosh :wiii: am I glad that it didn't work out, it would have been so much trouble! Thank you for letting me know! :happycbig:


All times are GMT -5. The time now is 02:29 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.