Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2012, 01:23 PM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 10,744
draugluin is on a distinguished road
Default 1.3.2 - the tabs...

I've installed it yet, but If I want to take a look at "profile.php" I get this

Quote:
Parse error: syntax error, unexpected $end in /var/www/clients/client161/web331/web/b-adoptables/inc/tabs.php on line 20
why

I've no modification, it's all original.
Reply With Quote
  #2  
Old 12-06-2012, 02:22 PM
powerchaos's Avatar
powerchaos powerchaos is offline
WebMaster
 
Join Date: May 2008
Posts: 130
Gender: Male
Credits: 9,933
powerchaos
Send a message via AIM to powerchaos Send a message via MSN to powerchaos
Default

probaly you can fix it by going to that line and see if a closing tag is missing

so far i can see it only includes a JS script ( javascript ) and are the tags closed like they need to be

maybe i see the problem

do you got short tags enabled or disabled ??

if disabled then use this change

open the file
search for this text
Code:
<? 
}

?>
and change it to
PHP Code:
<?php
}

?>
as you see , i added the text "php" after the first tag , so the script reconise it as a php script

let me know if that works

Greetings From PowerChaos
Reply With Quote
  #3  
Old 12-06-2012, 04:39 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,326
Hall of Famer is on a distinguished road
Default

Weird, if this is a glitch the others would have spotted it a long time ago. Did you install the script or upgrade from it? If you did an upgrade, make sure to overwrite all old files.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 12-06-2012, 05:37 PM
powerchaos's Avatar
powerchaos powerchaos is offline
WebMaster
 
Join Date: May 2008
Posts: 130
Gender: Male
Credits: 9,933
powerchaos
Send a message via AIM to powerchaos Send a message via MSN to powerchaos
Default

@Hall of Farmer

most hosts got short tags enabled in there php settings
there are always exeptions and based on the error code i read ( on line 20 ) aka end of the file or the closing tag ?> does it seems that short tags are not enabled

if you start php with <? then it is a short tag , so it is better to always start with <?php

there is nothing more i can see in the script or that file

Greetings From PowerChaos
Reply With Quote
  #5  
Old 12-06-2012, 05:38 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,326
Hall of Famer is on a distinguished road
Default

I see, I will keep this in mind then, thanks for bringing this up. It just never happens before, guess thats because I build my site on a dedicated host while most users are running with Nemesis' 99webs.info. I believe only a small number of webhosts disable short tags?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #6  
Old 12-06-2012, 05:42 PM
powerchaos's Avatar
powerchaos powerchaos is offline
WebMaster
 
Join Date: May 2008
Posts: 130
Gender: Male
Credits: 9,933
powerchaos
Send a message via AIM to powerchaos Send a message via MSN to powerchaos
Default

short tags are enabled by default but can provide some compatibility problems

because it is enabled by default do i think that only a small number of company's disable it

Greetings From PowerChaos

Last edited by powerchaos; 12-07-2012 at 05:16 AM.
Reply With Quote
  #7  
Old 12-07-2012, 04:20 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 10,744
draugluin is on a distinguished road
Default

first ... thank you both for brainstorming :D

@ Powerchaos

it startet with <?php and ends with ?>
unfortunately that’s not the problem. :(

@ HoF

I installed it new. no upgrade. I only use the database from Mys 1.3.1.
all the other side run perfect… only the profle don’t want to work …

mhhh… any idea, how to solve this ?
Reply With Quote
  #8  
Old 12-07-2012, 05:54 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,326
Hall of Famer is on a distinguished road
Default

Well the database from Mys v1.3.1 wont work since there are differences in database structure, you have to run the upgrader.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #9  
Old 12-07-2012, 10:16 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 10,744
draugluin is on a distinguished road
Default

ohhhhh... I started the upgrade an got this

Quote:
Cannot alter table prefix.adoptables


edit: okay, I've changed the tables manually. But the problem with the tabs still exist.

Last edited by draugluin; 12-07-2012 at 11:58 AM.
Reply With Quote
  #10  
Old 12-07-2012, 04:16 PM
powerchaos's Avatar
powerchaos powerchaos is offline
WebMaster
 
Join Date: May 2008
Posts: 130
Gender: Male
Credits: 9,933
powerchaos
Send a message via AIM to powerchaos Send a message via MSN to powerchaos
Default

if it is a fresh install , can you try somehting for me to debug it a bit more

can you install version 1.3.1 complete and see if the tabs give that problem

if yes , can i take then a look at your php info file to see if some settings are enabled that should be disabled ( like magic quotes )

if that solves the error , then we know it is a bug in the version 1.3.2 script and probaly not even in tabs.php but a possibility that it is in the js script file

php only returns the error code it founds in the php script , it says line 20 and that is the end of the script (unexpted end ... sounds normal that it is on end of the script )

that part also means that there is a closing tag missing , so it loops true all code and never close the final code and provide that error

also you say it is only on the profile page
so it is also possible that the profile page is generating that error and not the tabs.php , but the tabs.php does not get closed
it depends when the tabs.php get called ( start or end of the website )

if it get called after the profile script get called , then it means that the profile script does not close a tag

anyway , before we start to search we need to be sure if it is only on 1.3.2 or that it is also before and not related to php that open/close tags with there rewrite rules/safety rules ( like magic_quotes and stuff )

to make a php info file use the folllowing information

PHP Code:
<?php
phpinfo
();
?>
also remove that file after we are done , as it can be a security risk to leave those information public (it says what mods are installed and not and hackers use that to see what security bugs are left :P )

Greetings From PowerChaos
Reply With Quote
Reply

Thread Tools
Display Modes

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
tabs for adopts SilverDragonTears Questions and Supports 12 01-14-2012 07:57 AM


All times are GMT -5. The time now is 05:14 AM.

Currently Active Users: 450 (0 members and 450 guests)
Threads: 4,080, Posts: 32,024, 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