Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

Reply
 
Thread Tools Display Modes
  #21  
Old 02-15-2016, 09:24 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

nvm, I think I've worked it out

Last edited by Kasandra; 02-15-2016 at 09:55 PM.
Reply With Quote
  #22  
Old 02-15-2016, 10:01 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 110,871
Kyttias is on a distinguished road
Default

The Notices exist because you have a higher version of PHP than Mysidia was created on, and some things have since fallen out of best practice, but the code still functions.

Warnings... same deal, the code is still functional. As for the warning, you could try using 127.0.0.1 instead of localhost in Mysidia's configuration file (inc/config.php)?

Stackoverflow: What is the difference between a Notice and a Warning?

You can turn off Notices and Warnings in XAMPP's php.ini file (help finding it) under error_reporting (search for the line that does not begin with a semi-colon, may be the second result rather than the first): Try:
Code:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Hosts online already tend to have these disabled, as they're not true error messages. The creator of Mysidia is already aware of these "problems" and they should be fixed in the next version.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-15-2016 at 10:08 PM.
Reply With Quote
  #23  
Old 02-15-2016, 10:20 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

Urg, I'm getting another problem after install..

Code:
Warning: require(C:/xampp/htdocs//inc/smarty/Smarty.class.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Mysidia\classes\class_mysidia.php on line 326

Fatal error: require(): Failed opening required 'C:/xampp/htdocs//inc/smarty/Smarty.class.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\Mysidia\classes\class_mysidia.php on line 326
Reply With Quote
  #24  
Old 02-15-2016, 10:41 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

Okay, I made another install and it works fine now. I noticed that the url wasn't quite right and worked out that I forgot to include the subfolder in the installation. -is shot-
Reply With Quote
  #25  
Old 02-15-2016, 10:50 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

And now I can't login...

what am I doing wrong? XD


Saw this in your tutorial,
Code:
Always access your site with 127.0.0.1, not localhost - else you'll have issues logging in/staying logged in. So go ahead and bookmark 127.0.0.1.
I can't access the site under 127.0.0.1/Mysidia
The only way I can access it is with http://localhost:8080/Mysidia

Is that the reason I cannot login? And if so, how can I fix it? Currently the 127.0.0.1 shows only a blank page.

Edit: 127.0.0.1:8080 works >.>

But still unable to login.

Edit2: Made another account, logs in (or at least it says it does, as it comes up with the welcome message) then immediately logs out again when I try to click on any other link.

Last edited by Kasandra; 02-16-2016 at 12:07 AM.
Reply With Quote
  #26  
Old 02-16-2016, 12:38 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 110,871
Kyttias is on a distinguished road
Default

Just make sure your inc/config.php file matches whatever it is that you're trying to access...? If it requires 8080 as part of the url, make sure that's part of the configuration's file.

I have another solution, though it's an added layer of complexity. Because you're acting as your own server, you can create a "Virtual Host" which will allow you essentially make a fake domain name (fake, because only you can access it... I tend to end my fake sites in .dev but you really could make it anything). Here's a guide that should help. Because you'll be accessing the site at something other than either localhost or 127.0.0.1, it'll route it properly every time.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #27  
Old 02-16-2016, 08:31 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

Hi Kyttias,

This is my config file;

Code:
<?php
//Mysidia Adoptables Site Configuration File

define('DBHOST', '127.0.0.1');             //DB Hostname
define('DBUSER', 'root');             //DB Username
define('DBPASS', '*****');             //DB Password
define('DBNAME', 'mysite');             //Your database name
define('DOMAIN', '127.0.0.1:8080');             //Your domain name (No http, www or . )
define('SCRIPTPATH', '/Mysidia');     //The folder you installed this script in
define('PREFIX', 'adopts_');
?>
If 127.0.0.1:8080/Mysidia works (but wont let me login) then these settings look correct.

I followed that procedure you linked to, but came up with this error:

ERR_ICANN_NAME_COLLISION

Apparently Chrome does not like you using .dev
So I tried .loc , .local , .localhost
and they all just went to google search instead.

I restarted Xampp each time.

I've even attempted to try this - https://support.apple.com/en-us/HT204684

So, maybe its the files themselves? Well, here's what I have.

.hosts
Code:
	127.0.0.1       localhost
	127.0.0.1       www.mysidia.localhost
I've even tried added the 8080 port, just in case, but that didn't work either.

...-vhosts.config
Code:
NameVirtualHost *:8080

<VirtualHost *:8080>
       DocumentRoot "C:/xampp/htdocs/"
       ServerName localhost
</VirtualHost>

<VirtualHost *:8080>
DocumentRoot "C:/xampp/htdocs/Mysidia"
ServerName mysidia.localhost
ServerAlias www.mysidia.localhost
<Directory "C:/xampp/htdocs/Mysidia">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>
I am at my wits end trying to work this out >.<
Reply With Quote
  #28  
Old 02-16-2016, 08:32 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

Actually, I've even tried to do the same with another site I was working on for a friend, and had to access that through the localhost:8080 because nothing else worked... But that site was static and didn't require any login.
Reply With Quote
  #29  
Old 02-26-2016, 05:58 AM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

Not trying to rush anyone, but if there was someone that could help me set this up so that it works and I can play around with it and build a site it would be greatly appreciated.
Reply With Quote
  #30  
Old 02-26-2016, 10:49 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 110,871
Kyttias is on a distinguished road
Default

Alright, see, you're asking 127.0.0.1 to redirect to www.mysidia.localhost, but 127.0.0.1 is not your site, as in your config file you've put in 127.0.0.1:8080. Try updating your hosts file to reflect 127.0.0.1:8080. And once you're done, update Mysidia's config file to have the domain be to what you've got in your hosts file!

There a number of things that can go wrong. Virtual hosts must be enabled in httpd.conf, and then what you have above (more or less) should be, of course, in httpd-vhosts.conf -- and you have to make sure these are the right copies of these files in the XAMPP installation, because I know for certain WAMP keeps backups and editting those won't help (so long as you followed a guide, you're good).

My virtual hosts set up is like this:

Code:
<Directory C:/Users/Kyttias/Dropbox/WAMP>
    Order Deny,Allow   
    Allow from all 
</Directory>

<VirtualHost *:80>   
    DocumentRoot "C:\Users\Kyttias\Dropbox\WAMP\Sanctuary"
    ServerName sanctuary.dev
    ServerAdmin kyttias@gmail.com
    ErrorLog "logs/Sanctuary-error.log"
    CustomLog "logs/Sanctuary-access.log" common
</VirtualHost>
(One of many, anyway.) You have ServerAlias in yours, I've never used that. But my ServerName matches what's in the host file exactly, and yours does not. =/

My hosts for this would be (lines for this example only):
Code:
127.0.0.1       localhost
127.0.0.1       sanctuary.dev
And then my Mysidia inc/config.php file is now using:
Code:
define('DOMAIN', 'sanctuary.dev');             //Your domain name (No http, www or . )
But I'm not using 8080. You could always try reconfiguring XAMPP to not need 8080, if you haven't given that a shot. I honestly have no experience with 8080 or needing to work around it.

At some point or another you'd be better of seeking help from people who understand the problem... I can really only help people working with WAMP under a standard port 80.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-26-2016 at 10:52 AM.
Reply With Quote
Reply

Tags
hosting, wamp


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
To Non-Coders... an itty-bitty guide ChibiMaestro Tutorials and Tips 2 04-20-2018 07:33 PM
Help setting up my site Taogoat Questions and Supports 2 03-08-2014 11:46 AM
Errors with WAMP MikiHeart Questions and Supports 4 11-06-2013 10:12 PM
Need help setting Mysidia up on Uniform Server Hedgen Questions and Supports 0 03-16-2013 06:15 PM
More help for my guide. Killgore Questions and Supports 3 03-03-2009 07:16 PM


All times are GMT -5. The time now is 07:09 PM.

Currently Active Users: 709 (0 members and 709 guests)
Threads: 4,081, Posts: 32,031, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636