Post by Lumirion » Tue Aug 26, 2025 12:18 am

This morning I refreshed and navigated around the site a bit. Then I downloaded a new copy of the error log. It contains new entries but none relating to this mod.

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

Post by khnaz35 » Tue Aug 26, 2025 12:41 am

Perhaps its time to hire someone to take a look at it

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member
Online

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Lumirion » Tue Aug 26, 2025 4:07 am

Yah, I do think the logging issue will need to get approval to have someone look into it. I do appreciate all the help.
I am trying to work around the logging issue for now by passing a variable to twig. I sort my operations in the order in which they apply. For "catalog/controller/journal3/catalog.php" I added:

Code: Select all

    <operation>
      <search><![CDATA[$data['items'][] = array(]]></search>
      <add position="after"><![CDATA[								'path'    => $canonical_path,]]></add>
    </operation>
and then I added:

Code: Select all

  <file path="catalog/view/theme/journal3/template/journal3/module/catalog.twig">
    <operation>
      <search><![CDATA[{{ sub_item.name }}</span></a>]]></search>
      <add position="after"><![CDATA[                <div> {{ sub_item.path }} </div>]]></add>
    </operation>
  </file>
to display the path under the menu link.
The result is:

Code: Select all

<a href="http://test.puredieselpower.com/Powerstroke-Parts/Ford-Powerstroke-Engine-Parts"><span>Powerstroke Engine Parts</span></a>
<div>  </div>
So my variable is probably empty.

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

Post by khnaz35 » Tue Aug 26, 2025 10:35 am

Even if your variables are empty you still should hit the log, php error logs etc.

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member
Online

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Lumirion » Wed Aug 27, 2025 3:14 am

I tried adding:

Code: Select all

$log = new Log('category_path.log');
The file was not created in the logs folder or next to the controller. So I tried:

Code: Select all

if (isset($this->log)) {
  $file = fopen(DIR_LOGS . "/category_path.txt", "a+");
}
There was no change. Next I put it outside of the isset() check. A blank file appeared in the logs folder.
So anything inside the isset($this->log) check apparently doesn't run and setting the log doesn't change this.

Next I went through the mod and for each "add position" I added an fopen and fclose. And for each log write statement I added an equivalent fwrite.

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

Post by Lumirion » Wed Aug 27, 2025 3:17 am

Here is the output:

Code: Select all

[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}[Journal3\Catalog::index] parent::index completed.[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

Post by Lumirion » Wed Aug 27, 2025 3:17 am

Code: Select all

[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"287","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"290","module_type":"catalog","module_args":[]}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"286","module_type":"catalog","module_args":{"category_prefix":"251"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"318","module_type":"catalog","module_args":{"category_prefix":"856"}}
[Journal3\Catalog::index] parent::index completed.
[Journal3\Catalog::index] Entered with args: {"module_id":"296","module_type":"catalog","module_args":{"category_prefix":"612"}}
[Journal3\Catalog::index] parent::index completed.

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am
Who is online

Users browsing this forum: No registered users and 13 guests