Hot answers tagged

8

There are two concepts we're dealing with, the first being a code repository. Although there are different types of repository technologies, GIT is the defacto standard currently. Websites such as Github and Bitbucket are popular web services offering free GIT hosting solutions. The key point here being GIT is the actual underlying technology, and will ...


5

Well, my personal preference is...it depends on what exactly need to be debugged. If it's a simply element that's not displaying correctly due to some odd CSS, I'll simply get the live site running, open Firebug and sort it out. If it's a PHP or JS related issue, I normally tend to take a copy of the site and run it on my local host. This is always the ...


5

I am far from being a sophisticated developer and I also do debugging in online sites. I use this marbelous tool http://extensions.joomla.org/extension/j-dump It have a lot of advantages over a single var_dump. Hope it works for you too.


3

Sometimes there are subsequent actions that take away the focus without displaying the var_dump statement. There are two ways I use to view debug information in these conditions. First you can follow your var_dump statement with an exit() statement. Include a string if you need to know which exit statement was used (ie: exit('here'). The other option is to ...


3

As of 3.6.3, the Joomla core templates will give you the stack trace (including any nested Exceptions of the top level object that ultimately gets caught by the error handler) when the site is in debug mode. Of course, such a feature is also dependent on the template supporting it if it has a custom error.php layout. See https://github.com/joomla/joomla-...


3

This is kinda of necroposting, but an issue still has no fix from Falang author, so here is it. In the file ./plugins/system/falangdriver/falangdriver.php Find (309 row for Falang 2.6.0): $db->debug($debug); Change to: $db->setDebug($debug); Now Joomla debug information will contain all queries. The fix has been submitted to Falang author as well....


3

Found out that the joomla database driver is being overridden by another one which belongs to Falang component that allows you to manage all the content translations. Falang database driver has no debugging implementation and thus only disabling the Falang while debugging the site would solve the issue.


2

Note that your Telnet's Transfer Encoding is chunked. So that 7139 means 28985 bytes received or 702a means 28714 bytes received. Don't worry about it. The delay is due to somewhere else.


2

Some third-party plugin may be generating the zero. It is not a module or component output, because it should be included in the html Since zero is generated after the Html, it is rendered before Joomla ends the execution, for example closing sessions. I would disable, one by one, all non-core plugins (and everything else) to discover the cause.


2

The dreaded 500 error is the bane of my existence. If your error reporting isn't kicking out anything, the first thing I usually check is the htaccess file to see if it's the problem. In your case, you can still get to things, so I suspect that's not the issue. The next thing I do is start uninstalling and reinstalling, or upgrading stuff. I've had the ...


2

I know this isn't a great answer, and the results you get will be relative, but I'd suggest perhaps installing a vanilla Joomla install on the same server and doing a comparison of output from the memory debug tool. If your main site is eating up memory whilst the vanilla install isn't, gradually load in the same components and data and profile the ...


2

I often just use die($variable);, which should work in your case - break is just for loops. NB I'm not saying this is the best way, and I'm interested to see if other users have better ways of debugging. I'd also recommend you look at the J!Dump plugin for what you are after. This gives a lot more information when you dump something.


1

Have you tried echoing anything instead of the var_dump? For example, you can have something like echo('here'); or die('here');. I think the likely issue is that your code is not even reaching the var_dump line, and that's why it's not printing the variable.


1

Per FFrewin: To fix this bug, you can edit the mod_articles_categories.php and add this line after the defined('_JEXEC') or die;: JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php Reference: https://joomla.stackexchange.com/a/18849/5638


1

There's a sourcerer tag used in the facebook og tag generator. If you switch the view source you can see it like this: <meta property="og:description" content=" <!-- You can place html anywhere within the source tags --> <script language="javascript" type="text/javascript"> // You can place JavaScript like..." /> </head> The ...


1

My question was answered in the comments section by user TryHarder. I'll formulate it as follows: The approach I'm using is this: Take a copy of your component and install it; Remove the installed component folders within your Joomla installation (administrator/components/com_component, components/com_component, media/com_component); Then create symbolic ...


1

Once a user recomend to me build a development environment using Ant How to version a Joomla component Also, you can build a structure usint git submodules. Where the project will be split in the joomla folders, and somewhere you'll keep a master git project for each components with all the submodules togheter. This will become the zip file


1

First of all, if you are going to move the site to another one, I highly recommend you to use Akeeba Backup. There is a free version and it would make moving your website a lot simpler, while reducing the possibilities of a number of issues/errors compared to when moving your site manually. At the hand, open your configuration.php and check everything it's ...


1

I can reproduce it in Chrome 49. The page jumps slightly to the right on page load. It could relate to the scrollbar which pops up later. Only happens when the page loads relatively fast. Captured it on 2 screenshots: It's a known problem for centered web sites with different CSS hacks to fix that, for example force the scrollbars to appear always: html {...


1

As far as I know this is a Xdebug limitation and it should no longer occur in the most recent Xdebug version (at the time of this writing [2015-06-19] — Xdebug 2.3.3). Let me know if updating Xdebug brought any improvement.


1

Performance is a big subject. However, this article, from Roberto Segura Blog, shows a practical case to answer your question. Joomla! rendering tools benchmark http://phproberto.com/en/blog/21-joomla-rendering-benchmarks


Only top voted, non community-wiki answers of a minimum length are eligible