Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#41
|
||||
|
||||
(Not sure if I should have put this in Bugs, sorry?)
When you first adopt an adoptable, text tells you to make sure to feed your adoptable so it grows. The link is levelup/# instead of levelup/click/# so it doesn't work. I changed adoptview.php from this: $document->add(new Link("levelup/{$aid}", "feed ")); To this: $document->add(new Link("levelup/click/{$aid}", "feed ")); The link now works. Just make sure you don't forget the / or it'll give you an error like the first one. The file is in public_html > view.
__________________
Avatar courtesy of Doll Divine. |
#42
|
||||
|
||||
fresh install issues
Hi! Last year, I downloaded the script and gave it a test install and it worked great - but that was a different version. This version is giving me issues on a fresh install!
I have a brand new laptop, and I just downloaded a fresh install of WAMP (this release comes with PHP 5.4 with MySQL 5.6). Immediately I started having troubles. (But luckily nothing that will immediately prevent me from continuing on my way, I think.) I strongly believe all of this is caused because I have 5.4 and the temporary solution is to just turn off php error notices (everything seems to work, despite the notices). Problem 1 - The index.php in the installer has the following notice at the top of the page: PHP Code:
Problem 2 - I had to set a password for myphpadmin root, no biggie, that's more secure than not having one, so I got that done. (It wouldn't let me run the install script without a password, anyway.) I attempted to run the install script now that I had a password... Problem 3 - The install script went and timed out on me (warning sign number one) - so I went into my php.ini file and upped the script timeout from 30 seconds to 5 minutes, cleared the tables in the database it had managed to install, and tried again. Success! I got all the way to step six. Problem 4 - Installation complete! But wait, there are four php notices at the top of the page: PHP Code:
Problem 5 - The good news? The site does load... at the bottom of the page after several dozen notice errors. I get one of this: PHP Code:
PHP Code:
PHP is one of those languages that's constantly upgrading and it's syntax gets a little outdated. Even best practices can become obsolete, given enough time. (e.g., Using an uninitialized variable and relying on the fact it's automatically initialized to an empty string.) As a developer, that sort of stuff makes you want to pull your hair out, I know. (Oh!! I think it's worth mentioning that I also had the initial 500 Internal Server Error, but that was because mod_rewrite wasn't turned on by default in WAMP's Apache. I turned that on and restarted and everything seemed to have fixed itself.) Anyway, moving along: Problem 6 - On the Register page, this time I get an actual, non-notice error: PHP Code:
I'm not -sure- if I can turn Strict php error notices off, but I'll give it a shot. I look forward to your next major release but I'll have fun building off what's already provided. Thank you for your hard work! Last edited by Kyttias; 01-27-2014 at 12:54 AM. |
#43
|
||||
|
||||
Well most of these aint really problems, especially the notices. All you have to do is to disable notice errors in php.ini. For the strict standard error, go to /classes/class_radiolist.php and change:
PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#44
|
||||
|
||||
Quote:
My line in /classes/class_radiolist.php was actually: PHP Code:
PHP Code:
PHP Code:
However! I did work around the original Strict alert, with the code my install came with, because I can also turn Strict alerts off in php.ini, apparently. error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT does the trick. Last edited by Kyttias; 01-27-2014 at 04:04 AM. |
#45
|
||||
|
||||
Oh I see, then you probably just change RadioButton to GUIComponent instead. PHP is an annoying language in a way that its type hinting is incomplete. RadioButton is a subclass of GUIComponent, this kind of type hinting is normally reasonable but in PHP it generates strict standard errors.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#46
|
||||
|
||||
Quote:
I think newer versions of PHP are doing a little better, hence all the complaining it does over code it's changed requirements for, but as a constantly updating language it's lack of backwards compatibility as soon as a server updates makes it quite a headache. Despite having a book or two laying around, and tinkering around with PHP for a couple years, I still end up at a loss of what I'm doing most of the time and end up turning to Google to find nothing but forums full of people going 'have you googled it?' and shaking my head at the irony. Luckily, these warnings aren't major problems (yet, or hopefully anytime soon). But thank you so much for your time! I won't spend my time troubleshooting stuff I can just shut off, and I'm sure it's all going to get sorted out eventually. You never know what happens when PHP decides to update. It's like buying a new computer, eventually, you just can't find the old version you like in the store anymore. I'm glad to see activity, and this probably isn't where I'm meant to be posting, so when I have more questions, I'll post elsewhere. Sorry for that! I'm off to go build a template~ |
#47
|
||||
|
||||
I see, and yeah at this moment turning off notice/strict-error reporting is the best choice to take. I kinda forget what the method signature was, but I may take a look at it and see if I can get rid of the error message for you. It does not affect your site's functionality in any way, just some plainly annoying text you wish it to disappear. Good luck making a theme/template btw.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#48
|
|||
|
|||
Problem
I tried doing the "/install/index.php" part, but it's not working for me....
|
#49
|
||||
|
||||
What errors do you get? Are you sure you are accessing the correct url path? Sometimes this kind of issues are caused by improper uploads of script files, if you just upload the entire folder through FTP it may not work unless you rename it.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#50
|
||||
|
||||
Was just installing script and I am unfamiliar with the cPanel, so I might have done something wrong here...but while trying to install I got this error;
Could not connect to database, the following error has occurred: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Not sure what it means?
__________________
My Mods Site (1.3.4, 2020 Mods) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mysidia Adoptables v1.3.3[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 122 | 05-18-2013 04:02 PM |
Mysidia Adoptables v1.3.0[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 180 | 04-01-2012 10:16 PM |
Mysidia Adoptables v1.2.0[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 21 | 03-22-2011 04:13 PM |
Mysidia Adoptables v1.1.4[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 15 | 01-28-2011 11:48 AM |
Mysidia Adoptables v1.1.3[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 27 | 01-26-2011 02:59 PM |
What's New? |
What's Hot? |
What's Popular? |