PDA

View Full Version : Fix for blank page on x10Hosting upon installation


Hall of Famer
01-15-2015, 09:32 PM
On x10hosting's new server, you will usually get a blank page after installing Mysidia Adoptables on x10hosting. This will apply for all pages you may visit on your site, this is a glitch with x10hosting itself but can be easily resolved.

To fix this issue, modify the script file classes/class_path.php. Replace this at line 62, it should be inside the __construct method(thanks IntoRain for the quick and easy fix):


$this->root = getenv('DOCUMENT_ROOT').SCRIPTPATH."/";


By the following code below, note you need to change yoursitename to the name of your site:


$this->root = "/home/yoursitename/public_html/";



In 99.9% times, this will do the trick. If your site is still blank after making this change, first think about whether you have supplied the correct site name for $this->root property. If you are sure the information is all correct and it is not working anyway, you may have to switch to a different webhost, but for most people this is totally unnecessary.

Good luck, and please post in this thread if any of the instructions above confuse you.

rickasawr
01-15-2015, 10:59 PM
Yes! I had success with this! I was able to download it on the first try! Thanks HOF for posting this!

Also, i would like to point out that if you have the Script in a subfolder in the public_html folder of your host, then you should put this code on line 62:

$this->root = "/home/yoursitename/public_html/yoursubfoldername";

Hope this helps anyone that might be confused!

Glitter
10-20-2015, 10:52 AM
Idk where to put this, cause it happens to me on my x10hosting website, I just have a blank page with no speshul coding thingies...

Hall of Famer
10-20-2015, 03:03 PM
From now on I can host users' adoptables sites too, and of course you can add other things like Wordpress, Joomla, Drupal and forums if you want to. If you need this, send me a PM and I will set it up for you.