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
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:
and then I added:
to display the path under the menu link.
The result is:
So my variable is probably empty.
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>
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>
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>
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
I tried adding:
The file was not created in the logs folder or next to the controller. So I tried:
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.
Code: Select all
$log = new Log('category_path.log');
Code: Select all
if (isset($this->log)) {
$file = fopen(DIR_LOGS . "/category_path.txt", "a+");
}
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.
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":[]}
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.
Who is online
Users browsing this forum: No registered users and 13 guests