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)
-   -   Won't let me logout (http://www.mysidiaadoptables.com/forum/showthread.php?t=4928)

Distortion 12-04-2015 12:18 AM

Won't let me logout[FIXED]
 
Everytime I go to /login/logout, I get this error:
HTML Code:

Parse error: syntax error, unexpected '=' in /home/nibimysi/public_html/classes/class_widget.php(112) : eval()'d code on line 1

Warning: Cannot modify header information - headers already sent by (output started at /home/nibimysi/public_html/classes/class_widget.php(112) : eval()'d code:1) in /home/nibimysi/public_html/classes/class_cookies.php on line 125

Warning: Cannot modify header information - headers already sent by (output started at /home/nibimysi/public_html/classes/class_widget.php(112) : eval()'d code:1) in /home/nibimysi/public_html/classes/class_cookies.php on line 126

Warning: Cannot modify header information - headers already sent by (output started at /home/nibimysi/public_html/classes/class_widget.php(112) : eval()'d code:1) in /home/nibimysi/public_html/classes/class_cookies.php on line 127

Warning: Cannot modify header information - headers already sent by (output started at /home/nibimysi/public_html/classes/class_widget.php(112) : eval()'d code:1) in /home/nibimysi/public_html/classes/class_cookies.php on line 128


Hall of Famer 12-04-2015 03:37 AM

Well did you modify the script file? As far as I know, when I installed your site and did a quick test, I was able to log in and log out normally.

Distortion 12-04-2015 04:30 PM

The lang_breeding, lang_trade, loginview, class_itemshop, header.tpl, inventoryview, class_adoptables files, are the ones I modified, however replaced them with fresh files of the originals, except for header.tpl, inventoryview, class_itemshop.

I also added two columns to the adopts_users table, exploretimes and lastday, but deleted them, and two files, tooltip.js, tooltip.css, explorearea1 and explore, however I also deleted those except for the tooltip files.

Hall of Famer 12-04-2015 04:38 PM

I see, but judging from the error message, you have a syntax error in the Widget class file, which shows as:

PHP Code:

if($module->php) eval($module->php); 

As you see, this line evaluates the PHP code for a module in your widget, so the syntax error is in the module. Did you edit any modules in ACP? Or did you create a new module with PHP code? If so, it may explain why you get this error.

Distortion 12-04-2015 04:51 PM

Added a 1.3.3 avatar module I found out worked in 1.3.4, this one to be exact.
PHP Code:

$profile $mysidia->user->getprofile();
$avatar = new Image($profile->getAvatar());
$avatar->resize(200);
$moduleContainer->add($avatar); 

EDIT: Deleted it and I keep getting the error.

Distortion 12-04-2015 05:15 PM

Fixed it. I also had to delete it in the database as well.

Hall of Famer 12-04-2015 05:36 PM

Well it should still work with Mys v1.3.4, perhaps you did not copy/paste the code properly, this is usually where you may get a syntax error.


All times are GMT -5. The time now is 09:59 AM.

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