Php file included in joomla article duplicates itself
I have a php script that works well if it is accessed directly. http://rezervariturcia.com/DIDIM.php
When i use jumi to include this file in a joomla 3.3.1 article i get the script but it duplicated the whole page in the middle.
Problem here : http://rezervariturcia.com/index.php/antalya?code=DIDIM+BEACH++ELEGANCE,DIDIM,DIDIMELEGA I have tried to remove file by file and if i don`t put the /jquery-ui-1.10.4.custom.js file it works but with no custom view like in the original file. Can anyone give me a clue of what shoul i do in this case ?
There are several problems I can see. Can't guarantee any of these will fix the specific bug, but something in your code must be conflicting with Jumi, probably bad code.
Firstly, you should not put a <html> or <head> tag within your content - it is embedded within a page, so these elements will already be set as part of your Joomla template.
Secondly, you should not need any of those jquery scripts in your include page.
<script src="js/jquery-1.7.2.min.js"></script> <script src="js/js/jquery-1.10.2.js"></script>
Joomla already calls JQuery in your template. You certainly do not need to call multiple versions of JQuery. Note that removing these will mean the JQuery will not work when your page is accessed directly, but it should when placed within your template.