![]() |
stumped. i really need help.
I have been trying to upload thos script for 7 hrs and i am VERY frustrated. i have installed it how Chibi and G (Forgot her/his name) said to do so. But i keep getting a Syntax line everythime i try to preview my site.
http://antillia.co.nf/index.php Fatal error: Can't inherit abstract function Resource\Collection\Collective::iterator() (previously declared abstract in Resource\Collection\Collection) in /srv/disk9/1540094/www/antillia.co.nf/classes/resource/collection/collection.php on line 23 I am really frustrated as i have been working on this for 7+hrs continuously. |
Check the version of your PHP. If it's between PHP 5.3.0 to 5.3.8 I will help you fix 2-3 lines if code to get it to work. If it's PHP 5.2 you will have to upgrade PHP, since the script requires PHP 5.3 or later versions to run.
|
Sorry, but im kind of illiterate how will i go about checking my php version?
|
Assuming uare using a webhost with cpanel, the version of PHP should be readily available to u after logging into the control panel. U can always ask ur webhost for this info too by submitting a ticket. If u are fine with writing PHP code, you can always call phpinfo() to check the version of ur PHP.
|
PHP version 5.3.1
|
I see, if u are running PHP 5.3.0 - 5.3.8, u may get this abstract method inheritance error. It's very easy to fix, just open the abstract class files and remove the abstract methods. In ur case for instance, open the collection.php class file and get rid of the abstract method called iterator(). I am sure u need to fix more than this, just keep following the instruction above until all abstract methods causing errors are removed.
|
what do the abstract messages look like? sorry to be a pain but i dont want to ruin it and then have to bombard you with more.
|
If u open the file collection.php in directory classes/resources/collection/.., u should see a method defined as:
PHP Code:
|
Fatal error: Can't inherit abstract function Resource\Collection\Collective::size() (previously abstract in Resource\Collection\Collection) in /srv/disk9/1540094/www/antillia.co.nf/classes/resource/collection/collection.php on line 23
i search for other Abstract functions but couldnt find them edit: Im really frustrated....do you think i could just give you my hosting account and you can take a peek. i'll delete what ive done and start from fresh cause all i did was delete the mehods |
The other abstract method should be defined like this:
PHP Code:
|
so i just keep deleting them?
|
Fatal error: Can't inherit abstract function Resource\Collection\Mappable::entrySet() (previously abstract in Resource\Collection\Map) in /srv/disk9/1540094/www/antillia.co.nf/classes/resource/collection/map.php on line 22
thats what i get after i deleted those files |
Yes keep deleting abstract methods until all error messages go away. You may be surprised since you have more than just 1-2 abstract methods to fix, it's just that PHP can only display one error message at a time so you have to remove them one by one by reading the error messages carefully to locate these abstract methods that cause your problem.
|
all abstract messages are deleted. the public functions are still there and i am still getting errors.
|
Umm what are the new errors you get? Note if you just remove the two abstract methods in collection class file its unlikely to work, you will have to search for more.
|
i dont know what im doing, so after i delete the two files, i dont know what im doing, l looked for other abstact codes but theyre are none there. I am wrecking my brain. I dont understand why i am having these issues and no one else seems to...its quite annoying.
Parse error: , unexpected ';', expecting T_FUNCTION in /srv/disk9/1540094/www/antillia.co.nf/classes/resource/collection/collection.php on line 232 line 232 is the last line after im done deleting the files and only has the closing code. |
Looks like you may have not edited the file properly. Post whatever is in your collection.php file and I will try to identify the problem for you.
|
Code:
<?php |
Dont see anything is wrong, how about removing line 216-230?
|
Parse error: , unexpected ';', expecting T_FUNCTION in /srv/disk9/1540094/www/antillia.co.nf/classes/resource/collection/collection.php on line 216
Thats after i deleted the lines. |
It says that you have an unexpected ';' symbol. Seems to me that you did not erase the abstract method completely and may have left a semicolon somewhere, but for some reason from the code you posted I cant find where it is. Are you sure you posted everything in that file? I checked the syntax from netbeans and nothing was wrong.
|
Code:
<?php |
All times are GMT -5. The time now is 10:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.