pastosaurio Posted August 22, 2020 Share Posted August 22, 2020 Hello! How are you doing? I signed to ask this, cause the official Mysidia forums seam to be dead. If my experiment with the script ends up working, I'll try to stick around! I'm sorry, this is going to sound very dumb, but I'm having lots of problems with Mysidia. I uploaded everything to my hosting site and installed the script trhough the built in installer, but no matter what I do I keep getting HTTP Error 500. I haven't changed anything in the code. I don't know much about programming, I'm pretty sure I'll make lots of mistakes, but I'm trying to learn, so sorry if this sounds dumb. Quote Link to comment Share on other sites More sharing options...
judda Posted August 22, 2020 Share Posted August 22, 2020 @pastosaurio On your cPanel, or wherever you are publishing it to, are you able to retrieve the error logs to see what it is erroring on? My first guess is the version of PHP, but that is without much information. Quote Link to comment Share on other sites More sharing options...
pastosaurio Posted August 22, 2020 Author Share Posted August 22, 2020 (edited) @judda I can't find my error logs in the control panel (infinityfree hosting), and my PHP version is 7.0 and Mysidia v1.3.4 I had read that sometimes the PHP version can cause errors with this script but I couldn't find which version I should be using. After a while, I tried setting up the MyBB forums thing and it worked, but the Mysidia script isn't working. Sorry I didn't give you enough details, I'll attach a screenshot of my error message: It's in spanish but it says "This page doesn't work: antoracrittery.epizy.com cannot process this query in this moment. HTTP ERROR 500" This only happens when I try to access the Mysidia section of the website. When I go on the forum section everything works perfectly. Edited August 22, 2020 by pastosaurio Quote Link to comment Share on other sites More sharing options...
judda Posted August 22, 2020 Share Posted August 22, 2020 @pastosaurio Is PHP 5.6 an option? That's what I have my local environment set up using. Quote Link to comment Share on other sites More sharing options...
pastosaurio Posted August 22, 2020 Author Share Posted August 22, 2020 @judda Yeah, I just set it to 5.6 but it still gives me the same error message Quote Link to comment Share on other sites More sharing options...
judda Posted August 23, 2020 Share Posted August 23, 2020 @pastosaurio I would start by trying the following, in index.php add: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); Then start seeing what it says, if anything. Quote Link to comment Share on other sites More sharing options...
pastosaurio Posted August 23, 2020 Author Share Posted August 23, 2020 (edited) 1 hour ago, judda said: @pastosaurio I would start by trying the following, in index.php add: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); Then start seeing what it says, if anything. Putting those lines displays this message: Spoiler Fatal error: require(): Failed opening required '/home/vol8_8/epizy.com/epiz_26559584/htdocs/home/vol8_8/epizy.com/epiz_26559584/htdocs/adopt//inc/smarty/Smarty.class.php' (include_path='.:/usr/share/pear/') in /home/vol8_8/epizy.com/epiz_26559584/htdocs/adopt/classes/class_mysidia.php on line 326 And the line of code it's refering to says this: Spoiler require $this->path->getRoot().$templateClass; My guess is that it's not getting to the correct directory? But I don't know if I should change that line to something different, I don't wanna mess it up. Edited August 23, 2020 by pastosaurio Quote Link to comment Share on other sites More sharing options...
judda Posted August 23, 2020 Share Posted August 23, 2020 @pastosaurio It looks like their servers don't have the packages that you need to run it. You may be able to add Smarty templating engine in, but I'm not 100% sure. Quote Link to comment Share on other sites More sharing options...
pastosaurio Posted August 23, 2020 Author Share Posted August 23, 2020 @judda Just checked and my server did indeed not have smarty insalled. I installed it but I still get the same error message sorry, i don't know much about coding, if i'm annoying you with all the questions feel free to tell me Quote Link to comment Share on other sites More sharing options...
Mephistopheles Posted August 24, 2020 Share Posted August 24, 2020 (edited) Please post your config.php file and remove any database credentials or other sensitive information. I suspect your SCRIPTPATH config variable is set incorrectly. These two lines don't match: /home/vol8_8/epizy.com/epiz_26559584/htdocs/home/vol8_8/epizy.com/epiz_26559584/htdocs/adopt//inc/smarty/Smarty.class.php' /home/vol8_8/epizy.com/epiz_26559584/htdocs/adopt/classes/class_mysidia.php They need to match in order to work. Edited August 24, 2020 by Mephistopheles Added information about the error message Quote Link to comment Share on other sites More sharing options...
pastosaurio Posted August 24, 2020 Author Share Posted August 24, 2020 Hello! Here's an update: -I changed my hosting server and it worked, but it had trouble with the PHP version. Now it seems like the server is having trouble so I'm testing stuff in a WAMP local server -When testing in localhost I get the following error: "Fatal error: Class 'AppController' not found in C:\wamp64\www\login.php on line 5" It happens on multiple pages and there might be more errors that I haven't found yet. Quote Link to comment Share on other sites More sharing options...
Mephistopheles Posted August 24, 2020 Share Posted August 24, 2020 Has AppController been modified at all? Would you be able to post a copy here? There might be an extraneous semi-colon or something in AppController causing the error message to appear. (I am assuming you just copied everything from the online server to your local one.) Quote Link to comment Share on other sites More sharing options...
pastosaurio Posted August 24, 2020 Author Share Posted August 24, 2020 class_appcontroller.php Here it is. I did not modify it. The local server has the same files as the online one. I had modified some files on the online server but then I realized that I didn't need to so I'm gonna do a clean install with the same files as my local server whenever the control panel starts working again. So taking it as the local server having the correct files, this class_appcontroller.php file should be the one that's causing trouble. Quote Link to comment Share on other sites More sharing options...
Mephistopheles Posted August 26, 2020 Share Posted August 26, 2020 I checked the file over and it seemed fine to me - the problem might lie somewhere else. Do you want to try a clean local install of the script? Quote Link to comment Share on other sites More sharing options...
pastosaurio Posted August 26, 2020 Author Share Posted August 26, 2020 I did a clean install on the local server and that's the error that it's showing me, referring to that file Quote Link to comment Share on other sites More sharing options...
Hare Posted October 20, 2020 Share Posted October 20, 2020 I’m not sure if this is of much help, but you could try turning strict mode off in your php ini file and see what happens. When I updated to php 7, strict mode caused my site to stop working and I had to turn it off temporarily while updating our code according to the new version documentation. That might not be it though. if your error is caused by a specific class, I would make sure that the class is working correctly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.