#1
|
|||
|
|||
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:
Please help!!! |
#2
|
||||
|
||||
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.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#3
|
||||
|
||||
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.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#4
|
||||
|
||||
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?
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
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.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
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.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 04-15-2015 at 03:02 PM. |
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
Quote:
|
|
|
What's New? |
What's Hot? |
What's Popular? |