?
avatar codeChap
codeChap
26 Jan 2017

Steps to reproduce the issue

  1. Take the article component and add the following log code to the end of the content.php file.
    $string = time() . PHP_EOL;
    $resource = fopen(DIR.DIRECTORY_SEPARATOR."test.log", "a");
    fwrite($resource, $string);
    fclose($resource);

  2. Create an article and assign a menu item to it

  3. Create a module and assign it to the same menu item

  4. View the article you created, you will notice that the timestamp is created twice.

  5. Un-publish the module and it will be triggered once.

Expected result

There should only be one timestamp log per view of the article.

Actual result

Timestamp logs are produced twice on each view of the article

System information (as much as possible)

  • Joomla 2.6.5
  • Same results on PHP 5.6 and 7
  • Mac OS
  • Nginx
  • Mysql 5.5.53

Additional comments

While the content is not reproduced. If you were pulling from an API, that provided something large like images. You dont want to be running the same query twice.

avatar codeChap codeChap - open - 26 Jan 2017
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jan 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Jan 2017
avatar codeChap
codeChap - comment - 26 Jan 2017

screen shot 2017-01-26 at 22 49 12

avatar codeChap codeChap - change - 26 Jan 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-01-26 20:50:37
Closed_By codeChap
avatar codeChap codeChap - close - 26 Jan 2017
avatar codeChap
codeChap - comment - 26 Jan 2017

Oops

avatar codeChap codeChap - change - 26 Jan 2017
Status Closed New
Closed_Date 2017-01-26 20:50:37
Closed_By codeChap
avatar codeChap codeChap - reopen - 26 Jan 2017
avatar bertmert
bertmert - comment - 27 Jan 2017

I cannot reproduce the issue as described with Joomla 3.7.0. Which module type did you use? Any special settings in article, menu item, module?

avatar codeChap
codeChap - comment - 27 Jan 2017

It did not matter what module was used, I'll test against 3.7 and get back to you.

Sent from my iPhone

On 27 Jan 2017, at 14:54, bertmert notifications@github.com wrote:

I cannot reproduce the issue as described with Joomla 3.7.0. Which module type did you use? Any special settings in article, menu item, module?


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar Bakual
Bakual - comment - 27 Jan 2017

Can't reproduce it either on staging.

Maybe check if there is a redirect happening for some reason, then that would explain the double loading.

avatar codeChap codeChap - change - 28 Jan 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-01-28 13:09:59
Closed_By codeChap
avatar codeChap codeChap - close - 28 Jan 2017
avatar codeChap
codeChap - comment - 28 Jan 2017

I can't reproduce this on a fresh installation of 3.7, I can when I install the template used. So not a Joomla issue. Thanks for looking guys. Sorry for any time waisted.

avatar codeChap
codeChap - comment - 1 Feb 2017

In the template when you use the countModules or getModules i.e.:
JModuleHelper::getModules('left')
or
$this->countModules('left');

The component is triggered twice.

avatar codeChap codeChap - change - 1 Feb 2017
Status Closed New
Closed_Date 2017-01-28 13:09:59
Closed_By codeChap
avatar codeChap codeChap - reopen - 1 Feb 2017
avatar codeChap codeChap - change - 1 Feb 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-02-01 21:54:12
Closed_By codeChap
avatar codeChap codeChap - close - 1 Feb 2017

Add a Comment

Login with GitHub to post a comment