![]() |
Well your webhost is running PHP 5.2, right? Are you running a VPS server? If so, ask your server provider to upgrade PHP, thats the best way to resolve the problem.
But anyway, you probably do not need the UserCreator/MemberCreator/VisitorCreator classes if you only need the adoptshop feature. |
But what is the problem?
|
You mean the 'cannot inherit' error? Well thats what happens with PHP 5.2, its incompatible with Mys v1.3.2. There's a simple fix though, you just have to edit the UserCreator and remove the 'implements Creator' part. But keep in mind that in a long run you have to use PHP 5.3 anyway, Mys v1.4.0 will not support PHP 5.2 at all.
|
Well for now, which part exactly do I remove?
|
Actually I posted a solution before:
http://www.mysidiaadoptables.com/for...38&postcount=5 This will get rid of the Creator method inherit error, but wont fix all incompatibility issue with PHP 5.2. I recommend you not to use all script files from Mys v1.3.2, just choose whatever you need to add the features. Like I told you, you shouldnt even need to touch these Creator type classes if you just want to add the adoptshop. You are overkilling by importing way too many classes from Mys v1.3.2 that does not really help you anything. |
Well I had to keep adding in files. I'm only trying to add in what is needed but I'm not sure what IS needed.
Now I have this :/ Parse error: syntax error, unexpected T_PROTECTED in /home/taleofdr/public_html/classes/abstract/abstract_usercreator.php on line 33 |
Well post the UserCreator.php file and I will find out the problem for ya. Looks like you did not edit the file correctly, something is missing.
|
I fixed it.... getting this. *sigh*
Fatal error: Declaration of Member::login() must be compatible with that of User::login() in /home/taleofdr/public_html/classes/class_member.php on line 3 |
Well remove this line in classes/abstract/abstract_user.php:
PHP Code:
|
Done and now:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/taleofdr/public_html/classes/class_input.php on line 120 What on earth? lol |
You have a malfunctioning double colon operator in that script file, remove it and see what happens.
|
???
Code:
<?php |
I mean, this file: classes/class_input.php
|
Oh. Ok what am I looking for exactly?
|
Well I said you need to look into classes/class_input and search for line 120 that seems to be malfunctioning. It seems to have two colons that cause the trouble, you need to remove them.
|
I removed one and got Parse error: syntax error, unexpected ':' in /home/taleofdr/public_html/classes/class_input.php on line 120
|
Then how about removing them both? What does that file look like on your server anyway?
|
I did. Still got an error.
Parse error: syntax error, unexpected T_VARIABLE in /home/taleofdr/public_html/classes/class_input.php on line 120 I'm starting to think I won't be able to add in the adopt shop :/ Code:
<?php |
I see, you dont have a controller object, and thus the double colons are invalid. You shouldnt be using the input class at all, get rid of it and see what happens.
|
Ok where is it and what exact part? Sorry, I don't want to mess anything up and I'm not familiar with it at all.
|
Well I just dont understand what you are trying to do actually. Do you just wish to incorporate the adoptables shop into your site? If so, you just need the following script files: class_adoptshop.php, class_itemshop.php, shop.php and maybe some files from ACP. You do not even need to play with the class_input.php at all, unless you want a full upgrade.
|
oh hmmmm, well I have all those files and I'm still getting errors.
I removed require init.php and get this: EDIT: Wrong warning... Fatal error: Call to a member function getstatus() on a non-object in /home/taleofdr/public_html/shoptest.php on line 7 |
umm what does your shoptest.php file look like?
|
I edited my post with the correct warning, in case you didn't see that.
Code:
<?php |
Well now I am confused, are you using Mys v1.3.2's code now? If your site is still a Mys v1.3.1 site, you need to replace variables beginning with $mysidia by their equivalent Mys v1.3.1 variables. Some examples are given below:
PHP Code:
|
I'm not sure I would know what to change everything to :( Sadly I guess I can't use this right now.
|
Well... Would you mind starting a new thread in the questions & Support subforum? Id like to see what I can do to help you there, this thread will be reserved for newbies and old members who can upgrade their sites.
|
Sure thing :)
|
Er... I've upgraded to the newest version, but I can't seem to access the admin control panel? I logged in, got an error at the top of the page, something about the header being sent twice? I ignored it because it wasn't affecting anything else, but when I went elsewhere in the ACP, it started giving me "you can not access the acp" messages.
|
umm are you running the site on a PHP 5.3 server? Its strange though, some people do get header being sent twice error, it is one of the problems even I get frequently. In most cases it is because the ACP theme aint loaded successfully.
|
I'm running Php 5.3.19 and MySQL 5.5.27. And the theme seems to be working just fine.
|
umm thats weird... Does your site url has http:// or www.?
|
firefox is weird and hides them, but normally its rattiesftw.com minus a www.
also, I'm getting the following error trying to access a certain shop; Fatal error: Call to a member function select() on a non-object in /home/rattie/domains/rattiesftw.com/public_html/classes/class_item.php on line 20 |
Well without http:// or www it can get you into some problem, if the ACP aint working you better take a look at what the url is saying whenever you access ACP. If the url appears to be weird looking(such s having two http's), you know you get a problem.
umm did you just upgrade rather than installing a new copy? If so, are you sure the upgrade is performed successfully? Did you replace all old script files? If not, search for the class files and see if you have deprecated variable $adopts. Replace all instances of $adopts by $mysidia->db. This should do the tricky. |
I do normally use without www. I've been trying to use www. more and that seems to have fixed the acp problem. I'm not sure how to redirect my domain so it shows up as www. everytime though. ;-;
I looked through the files and I do seem to have the mysidia->db variable. |
Quote:
I contacted my host to see if they could install a PDO Driver for MySQL; now to wait and see. :usedusedused: |
Well check if your host has PHP 5.3 on its server, if not you better just move host rather than wait for them to make changes. Its a different story though if you use a paid-host, they usually are much more reliable and can perform server upgrade for ya.
|
Just installed ---
Hey!
Just installed this on a server running php 5.4.6 - got it all installed just fine, went through the whole installation, then when I got to the 'you need to log in before you can access the CP part' ---- this is what I got---------and the actual Admin section DID come up just fine, I just couldn't do anything there because of not being logged in ( it did make my account too) : Fatal error: Uncaught exception 'Exception' with message 'Fatal Error: Class PDO either does not exist!' in /home/zpxarxwa/public_html/classes/class_loader.php:26 Stack trace: #0 [internal function]: Loader->load('PDO') #1 /home/zpxarxwa/public_html/classes/class_database.php(3): spl_autoload_call('PDO') #2 /home/zpxarxwa/public_html/classes/class_loader.php(20): include('/home/zpxarxwa/...') #3 [internal function]: Loader->load('Database') #4 [internal function]: spl_autoload_call('Database') #5 /home/zpxarxwa/public_html/classes/class_mysidia.php(65): class_exists('Database') #6 /home/zpxarxwa/public_html/classes/class_mysidia.php(30): Mysidia->loaddb() #7 /home/zpxarxwa/public_html/inc/init.php(26): Mysidia->__construct() #8 /home/zpxarxwa/public_html/vmessage.php(3): require('/home/zpxarxwa/...') #9 {main} thrown in /home/zpxarxwa/public_html/classes/class_loader.php on line 26 I can't imagine what's wrong since it did have the AdminCP part come up fine. The site itself won't come up at all except for the AdminCP, as far as I can tell. I do have some files on the site from an older Mysidia I was toying with using-----should I re-install all the files for just the latest installation, or is that not causing this? Thanks! :) PS the sites at: http://www.equus-sim.com |
umm it seems to me that your server does not have PDO? Do you run your own server? If so, compile PDO with the instruction given on PHP manual site. If you are with a host, contact them and ask to have PDO installed/enabled.
|
Quote:
I've contacted them a few times through support tickets, and each time they've responded with nothing helpful. :P I asked them if they could check if the PDO driver was configured correctly, because I was getting errors when the script tried to write the config file and access the site, and I got back this: Quote:
I guess i'll just look for another host to use for my website if they can't allow the PDO driver to be used. :P |
All times are GMT -5. The time now is 06:24 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.