Php file included in joomla article duplicates itself

I have a php script that works well if it is accessed directly.

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 :,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 ?

Thank you.


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.

Your site is constantly loading javascripts - not sure why that is, but there must be an infinite loop somewhere. The above may fix this, but this is causing your site to move at a crawl.

Need Your Help

IE warning workaround? Page w/Secure and insecure items

javascript php internet-explorer https

I have a page that is viewed secured with 'https' in the URL, that also contains youtube urls to play video from youtube. Since the youtube URL contains 'http' with no 's' IE is giving an a warning

How to get only photos from user's Facebook newsfeed using graph api?

javascript facebook facebook-graph-api facebook-fql

I combed through the Facebook documentation but didn't see an obvious way to return ONLY photos on a user's newsfeed. Specifically:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.