Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Blank page, MySQL Database Error? (http://www.mysidiaadoptables.com/forum/showthread.php?t=4744)

MeinKat 12-23-2014 09:25 PM

Blank pages [partly solved]
 

Hello~
I installed this script a while ago, and have had so many errors. I am now finished with trying to fix it myself :mii:

My site will always show up blank, all pages. I have reinstalled the script numerous times, wiped the MySQL Database, reset the website domain, and even created a new web hosting account in attempt to get this working. I have followed all the steps in the Youtube tutorial.

The installer works perfectly, it's just that my website always shows up blank :hmmm:

I am currently using x10hosting, and my website can be found here:
edit:removed the link because I am not using the Mysidia Adoptables script anymore.


When I use the 'Check' in the MySQL database thing, it comes up with an error. It always came up with this error each time I reinstalled it, and to no avail.
  Spoiler: error thing here 
An issue with the database was found:

[kyandiiw_database.adopts_acp_hooks] status: OK
[kyandiiw_database.adopts_adoptables] status: OK
[kyandiiw_database.adopts_adoptables_conditions] status: OK
[kyandiiw_database.adopts_ads] status: OK
[kyandiiw_database.adopts_breeding] status: OK
[kyandiiw_database.adopts_breeding_settings] status: OK
[kyandiiw_database.adopts_content] status: OK
[kyandiiw_database.adopts_daycare_settings] status: OK
[kyandiiw_database.adopts_filesmap] status: OK
[kyandiiw_database.adopts_folders_messages] status: OK
[kyandiiw_database.adopts_friend_requests] status: OK
[kyandiiw_database.adopts_groups] status: OK
[kyandiiw_database.adopts_inventory] status: OK
[kyandiiw_database.adopts_items] status: OK
[kyandiiw_database.adopts_items_functions] status: OK
[kyandiiw_database.adopts_levels] status: OK
[kyandiiw_database.adopts_levels_settings] status: OK
[kyandiiw_database.adopts_links] status: OK
[kyandiiw_database.adopts_messages] status: OK
[kyandiiw_database.adopts_modules] status: OK
[kyandiiw_database.adopts_online] status: OK
[kyandiiw_database.adopts_owned_adoptables] status: OK
[kyandiiw_database.adopts_passwordresets] status: OK
[kyandiiw_database.adopts_pound_settings] status: OK
[kyandiiw_database.adopts_pounds] status: OK
[kyandiiw_database.adopts_promocodes] status: OK
[kyandiiw_database.adopts_settings] status: OK
[kyandiiw_database.adopts_shops] status: OK
[kyandiiw_database.adopts_shoutbox] status: OK
[kyandiiw_database.adopts_themes] status: OK
[kyandiiw_database.adopts_trade] status: OK
[kyandiiw_database.adopts_trade_associations] status: OK
[kyandiiw_database.adopts_trade_settings] status: OK
[kyandiiw_database.adopts_users] status: OK
[kyandiiw_database.adopts_users_contacts] status: OK
[kyandiiw_database.adopts_users_options] status: OK
[kyandiiw_database.adopts_users_profile] status: OK
[kyandiiw_database.adopts_users_status] status: OK
[kyandiiw_database.adopts_visitor_messages] status: OK
[kyandiiw_database.adopts_vote_voters] status: OK
[kyandiiw_database.adopts_widgets] status: OK


[If it helps, the database name is kyandiiw_database, and the database user us kyandiiw_MeinKat]

As you can see, the database is finding errors within ALL the tables, and I don't seem to understand why. The tables themselves seem to be working fine, because my user from the SQL database is there. I have ran a few queries I found on the Internet, but I am not fully sure about what happened. Most of the time an error with the code I put in came up as Error #1064.

All the files are viewable/editable/there in the File Manager thing as well.

To make sure, when the installer asks for the database user, it's the one you created in the MySQL database, right? I'd assume so, since it worked, but I'd just like to know in case.

I am sorry if this sounds confusing, but please bear with me, I have very little knowledge of coding outside of CSS and HTML. I have spent countless hours researching and scouring the forums. It was today I decided to sign up and ask for help, so I would appreciate anything I could get :happycbig:

Thanks, MeinKat :meow:

Kyttias 12-23-2014 10:34 PM

*sigh* At this point, as far as I can tell by the sheer number of people complaining since this summer, the best solution is to simply not use x10 hosting anymore. People have been reporting the site works fine perfectly well installed anywhere else but there, possibly due to a change in how x10 hosting operates over the summer. (But I strongly assume whatever problem x10 has it's only impacting some, but not all, of their servers.)

However, please read through these possibly relevant posts - [x], [x], [x], [x]

About the only other thing we can do to help is to ask to see your inc/config.php file to make sure it is configured correctly. :mii:

MeinKat 12-23-2014 11:25 PM

I think I'm going to have to switch regardless because x10hosting is now having problems with my sign in :desudesudesu: It won't let me access anyting at all anymore :littlecfrown:

I read through almost all of those earlier >.<'

It's configured correctly as far as all tutorials go, with my database name/user/pass all entered correctly. Even if I wanted to show you, x10 isn't letting me log in. I'll move the host like you suggested, and report back.

Thanks for the help :usedusedused:

IntoRain 12-24-2014 09:13 AM

The blank page is probably due to the issue Kyttias mentioned, and not database related. At least most blank pages on x10hosting right after installing are because of that. They changed their root so it doesn't link to the proper place anymore, you gotta manually change it. I understand you will change host, but if you want to stay with x10hosting, open the file class_path.php (should be inside path folder) and search this line:

PHP Code:

$this->root getenv('DOCUMENT_ROOT').SCRIPTPATH."/";  //getenv('DOCUMENT_ROOT') is not the path we want anymore 

Substitute it with:

PHP Code:

$this->root "/home/kyandiiworld/public_html/"


MeinKat 12-28-2014 09:54 PM



Thanks, IntoRain.
However, even after I changed it, it failed to show up.
I moved the host to 000webhost.com, but the PHP version isn't up to date so I get an unexpected T_STRING error for the namespace\Resource line. I can't force the 000webhost team into upgrading the PHP version, unfortunately :ti:

So, do you have any recommended (free) webhosts? (other than x10, of course :eye:)

If this next time doesn't work, then I think I'll give up on installing the script altogether. I might try another version, but it doesn't look as if it'll work.


Abronsyth 12-29-2014 10:18 AM

000Webhost also does not support pet sites, so that's another reason it wouldn't work.

I use iPage, but you have to pay (though it's super cheap). Good and free can be very hard to find, haha, I've used x10hosting (didn't work), 99webs.org (awesome but I wanted a domain name), and others I've since forgotten. I can say that paying is really worth it if you're looking for reliable hosting and up-time, but I understand why you'd want to hold off.

I know nothing of this one, but you can check it out? FreeHostia?

IntoRain 12-29-2014 10:20 AM

Quote:

Originally Posted by MeinKat (Post 31791)


Thanks, IntoRain.
However, even after I changed it, it failed to show up.



Did the /installation page fail to show up? The site won't show up until you go through the installation process.
x10hosting isn't that bad honestly, if we figure out what isn't working for you. 00webhost doesn't let you have adoptable sites on them, at least they didn't some time ago.

For other host suggestions http://mysidiaadoptables.com/forum/s...ead.php?t=4429

MeinKat 12-29-2014 01:28 PM



Abronsynth-
I will try 99webs for now, and if that doesn't work I will think about switching to a paid host. I'll be sure to check out FreeHostia later :meow:

IntoRain
Yes, the installation page does show up, but everything else is still blank. I changed the root to link it properly, but it's still not showing up :el: I don't think 000webhost has upgraded anything, so it's likely that it doesn't support adoptable sites :p


Thanks for everyone's help, I appreciate it! :happycbig:

Kyttias 12-29-2014 02:19 PM

Have you considered developing your site offline for a while? It's what I'm doing. The down side is that I can't show anyone outside of my local network, but this is due to the limitations of my router, not the concept itself (my last router worked fine, but I had a different internet service provider then). However, I've really enjoyed being able to host the site myself and work locally on it - I can even work on it without an active internet connection, which has made long waits in my car much more tolerable (since I've gone and set it up on my laptop).

I've gone the localhost route because I know my site won't be ready for launch until I've dedicated enough time to it. Once it's ready, it's as simple as backing up the database and moving files over to real hosting.

I use WAMP, because I have Windows, and there are a few simple setting tweaks I know of to get Mysidia up and running. But I've also heard of many alternatives, all ending in -AMP, standing for Apache, MySQL, and PHP, for these are the backbones of most servers. There's also LAMP for Linux, MAMP for Macs, and XAMPP which has a package for each of these and a few other flavors of OS.

As for sharing a site hosted on your own computer with others - if you've ever had to port forward through your router to get a Minecraft server to play online with your friends, the concept is extremely similar.

Anyway, this is just my personal preference as an alternative to free hosting.

It will be a long time before I'm ready to make the jump to paid hosting and I will be extremely selective about the process, as many hosts that offer free top-level domains will forever be the owners of those domain names, not you, and you will never be able to get them to relinquish your name if you want to switch to another host. Be careful out there when you agree to fine print in terms of service.

IntoRain 12-29-2014 03:41 PM

Quote:

Originally Posted by MeinKat (Post 31794)


IntoRain
Yes, the installation page does show up, but everything else is still blank. I changed the root to link it properly, but it's still not showing up :el: I don't think 000webhost has upgraded anything, so it's likely that it doesn't support adoptable sites :p


Thanks for everyone's help, I appreciate it! :happycbig:

Did you go through the installation process though? Everything will be blank until you install it (just making sure!)

MeinKat 12-29-2014 10:19 PM


Kyttias-
What does going offline do, and how do I get there? o3o
Does going offline affect anything? (I've been using localhost myself)

I will definitely, definitely look into getting MAMP/XAMPP/WAMP. As of now though, I'm just trying to get a basic website up.

I have tried port-forwarding in Minecraft, but I'd figured there were too many risks with hackers involved/loophole in the system/etc.

I will keep all of that in mind before using a paid host, and them owning my domain name doesn't sound appealing in the least.

IntoRain
Yep, I went through the installation process.

------

Thank you everyone who helped, but seeing that the script wasn't working, I decided to use another one. I have a few remaining questions however- if I give credit to Mysidia Adoptables, may I use bits and bobs of the script on my website? And, may I continue to get help here, or is it only for the Mysidian community? Thanks again :usedusedused:

Until there is a solution, I will use the script I have now. If I find/someone finds a fix for the problem, I will try using Mysidia again :happyc:


IntoRain 12-29-2014 10:50 PM

Quote:

Originally Posted by MeinKat (Post 31807)

Kyttias-
What does going offline do, and how do I get there? o3o
Does going offline affect anything? (I've been using localhost myself)

I will definitely, definitely look into getting MAMP/XAMPP/WAMP. As of now though, I'm just trying to get a basic website up.

I have tried port-forwarding in Minecraft, but I'd figured there were too many risks with hackers involved/loophole in the system/etc.

I will keep all of that in mind before using a paid host, and them owning my domain name doesn't sound appealing in the least.

IntoRain
Yep, I went through the installation process.


With the tools Kyttias presented (WAMP/XAMPP...) you can try out websites without having them on the internet. It's useful for local development, instead of doing the changes on the live website. To 'go offline' you just need to install and run one of those tools (my favorite is WAMP, it's easier to use). Then you just need to put the files in a specific folder in your computer and type "localhost" in the address bar to see it.

If you modify your settings to use the same php/apache versions as the live server, it shouldn't have any differences.


Quote:

And, may I continue to get help here, or is it only for the Mysidian community? Thanks again :usedusedused:
Well, the forum is more Mysidia-oriented, so it's more complicated to get answers for other frameworks. You can set up a thread in here for non-mysidia websites ^^ I can always try to help, but if I don't have the framework set up to test, it might be not be as accurate

MeinKat 12-30-2014 08:12 PM

ohmygoodnessohmygoodnessohmygoodness :madnoes::madnoes::madnoes::madnoes:

I fixed it!! Well, sort of. The index.php is the only page that'll show up, the rest are either Error 404's or blank.

When I click login, the URL will show mysite.com/login instead of mysite.com/login.php, thus resulting in the Error 404, and then when I manually type in /login.php, it'll show up blank.

I'll see if I can fix that myself, but help would be great!
However, I'm glad to see the front page working :DDD


Here is my website using the Mysidia script:
Kyandii

And here is the other one using code I found off of the internet, there's so many errors though:
Kyandii World



IntoRain 12-30-2014 08:37 PM

Quote:

Originally Posted by MeinKat (Post 31819)
ohmygoodnessohmygoodnessohmygoodness :madnoes::madnoes::madnoes::madnoes:

I fixed it!! Well, sort of. The index.php is the only page that'll show up, the rest are either Error 404's or blank.

When I click login, the URL will show mysite.com/login instead of mysite.com/login.php, thus resulting in the Error 404, and then when I manually type in /login.php, it'll show up blank.

I'll see if I can fix that myself, but help would be great!
However, I'm glad to see the front page working :DDD


Here is my website using the Mysidia script:
Kyandii

And here is the other one using code I found off of the internet, there's so many errors though:
Kyandii World



The pages are supposed to be without the .php. It might be an error with your configurations, maybe you put the wrong folder mysidia is in? Check your config.php

MeinKat 12-30-2014 08:53 PM

I checked it, it's all correct :el:
I tried changing the scriptpath to home/kyandii/public_html, but it doesn't change anything. Is that correct?

IntoRain 12-30-2014 09:35 PM

Quote:

Originally Posted by MeinKat (Post 31821)
I checked it, it's all correct :el:
I tried changing the scriptpath to home/kyandii/public_html, but it doesn't change anything. Is that correct?

If your index.php file is inside the folder public_html folder, your scriptpath in config.php should be like

PHP Code:

define('SCRIPTPATH'''); 

If it's inside a folder like home/kyandii/public_html/adoptables/index.php, it should be like:

PHP Code:

define('SCRIPTPATH''/adoptables'); 


MeinKat 12-30-2014 09:38 PM

Quote:

Originally Posted by IntoRain (Post 31822)
If your index.php file is inside the folder public_html folder, your scriptpath in config.php should be like

PHP Code:

define('SCRIPTPATH'''); 

If it's inside a folder like home/kyandii/public_html/adoptables/index.php, it should be like:

PHP Code:

define('SCRIPTPATH''/adoptables'); 


It is in the public_html folder and looks like the first one.

MeinKat 12-30-2014 10:11 PM


The index page shows up with the .php extension. When I type in kyandii.pcriot.com/index, I get an Error 404.

Is there a way to change it so that the .php shows up in the URL?

edit;; I've been at it for a while, anyone got any ideas?


Kyttias 01-16-2015 11:16 PM

:desudesudesu: I've got the same problem on another host (since I'm attempting to check out various hosting). My root site does not work (address.com, for example) but adding /index.php is the only way to get it to work. Not even a /index works, it must have the file extension. I can't log in, of course, because it's trying to go to a page without a file extension, thus I get a 500 Internal Server Error (same as I get when I try to visit the index without the file extension).

And yes, the .htaccess was uploaded.

My guess is that mod_rewrite is disabled... though the tech support insists that is on.

MeinKat 01-17-2015 12:15 AM

Quote:

Originally Posted by Kyttias (Post 31916)
:desudesudesu: I've got the same problem on another host (since I'm attempting to check out various hosting). My root site does not work (address.com, for example) but adding /index.php is the only way to get it to work. Not even a /index works, it must have the file extension. I can't log in, of course, because it's trying to go to a page without a file extension, thus I get a 500 Internal Server Error (same as I get when I try to visit the index without the file extension).

And yes, the .htaccess was uploaded.

My guess is that mod_rewrite is disabled... though the tech support insists that is on.



My root site still works, though. I tried another reinstall on my second account, and to no avail. I messed around with it, but ended up deleting the entire thing since it did not work :p

Kyttias 01-17-2015 01:20 AM

Actually!!!

I just managed to fix the problem by adding a line to my .htaccess! After the first line, the very next line needs to have this:

Code:

RewriteBase /
Before continuing. @w@; At least that's definitely what solved my problems!

But now I have this error when I attempt to log in:

Code:

Warning: Cannot modify header information - headers already sent by
(output started at /srv/disk3/1793798/www/novul/classes/class_template.php:354)
in /srv/disk3/1793798/www/novul/classes/class_cookies.php
on line 85

Warning: Cannot modify header information - headers already sent by
(output started at /srv/disk3/1793798/www/novul/classes/class_template.php:354)
in /srv/disk3/1793798/www/novul/classes/class_cookies.php
on line 88

Warning: Cannot modify header information - headers already sent by
(output started at /srv/disk3/1793798/www/novul/classes/class_template.php:354)
in /srv/disk3/1793798/www/novul/classes/class_cookies.php
on line 90

Warning: Cannot modify header information - headers already sent by
(output started at /srv/disk3/1793798/www/novul/classes/class_template.php:354)
in /srv/disk3/1793798/www/novul/classes/class_cookies.php
on line 92

And while these are merely 'warnings' I also cannot log in. It says success but the site still insists I am logged out if I try to go anywhere. I also cannot access php.ini to turn off warnings.

I've read that these particular errors can be caused by improper file encoding (particularly UTF-8 BOM), but I've ruled that out, I think?

~!! Actually, I found the culprit. There was some trailing whitespace at the end of the document in class_template.php. Just pop on in and remove it.

MeinKat 01-17-2015 12:32 PM

Tried that. Still doesn't work. I don't have an error_log file yet, so I just added error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

at the beginning of the php code for the login page, and it seems to be an error with AppController. Here's what is reads:

Fatal error: Class 'AppController' not found in /home/kyandiip/public_html/login.php on line 8

Earlier I did another one of these error code things, and took a screenshot of what appeared:
  Spoiler: clicketh 

Kyttias 01-17-2015 01:33 PM

That's... really odd, assuming nothing has been modified at all. Or, rather, I'd put the error reporting inside the index() function, rather than the top of the page, if possible.

And I'm still not without errors, either. Everything is functional, but with a lot of notices and strict warnings.

Code:

Strict Standards: Declaration of DropdownList::add() should be compatible with GUIContainer::add(GUIComponent $component, $index = -1) in/srv/disk3/1793798/www/novul/classes/class_dropdownlist.php on line 197

and

Strict Standards:  Declaration of RadioList::add() should be compatible with GUIContainer::add(GUIComponent $component, $index = -1) in /srv/disk3/1793798/www/novul/classes/class_radiolist.php on line 68

And those are just on normal pages... (editting profile options, places with forms, obviously). But worse is that I can't access the adminCP:

Code:

Warning: require(../inc/config.php): failed to open stream: No such file or directory in /srv/disk3/1793798/www/novul/classes/class_initializer.php on line 97

Fatal error: require(): Failed opening required '../inc/config.php' (include_path='.:/usr/local/php-5.5.12/share/pear') in /srv/disk3/1793798/www/novul/classes/class_initializer.php on line 97

And I'm not sure why my main site does not have failed to open stream errors, just the adminCP.

I'm, of course, not on x10 Hosting. I'm actually trying out a free packing at WebFreeHosting.net. But the error was similar, so I thought I'd give a shot at posting. -o-; If I upgrade my package I can at least turn off warnings/notices/strict standards manually, as I do in my local WAMP setup.


All times are GMT -5. The time now is 06:08 AM.

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