Search
Other ReReplacer questions
Forum

Insert module with rereplacer

Odin Mayland's Avatar Odin Mayland
I feel dumb for not figuring this out...

When I use RR to insert:
{module id="193"}

It just displays:
{module id="193"}

How do I get the actual module to display?
Odin Mayland's Avatar Odin Mayland
I believe I have gone through all the troubleshooting but can not resolve it.

The MA plugin is published.
No markup.
The customHTML module has Prepare content On.
I tried {module id="193" fixhtml="false"}


Here is an example: new.retaildisplayusa.com/slatwall/textur...ured-slatwall-detail
Peter van Westen's Avatar Peter van Westen ADMIN
It is probably due to the system plugin ordering. Try changing the ordering of the plugins in question.
See: regularlabs.com/blog/242-plugin-order-is-important
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
I have tried multiple orders with no results:
tinyurl.com/23zgw7nn

If I order MA after RR, then I get the "WebAssetManager is locked" error.
Peter van Westen's Avatar Peter van Westen ADMIN
Try setting the ReReplacer item to search area 'component' instead of everywhere.
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
I tried that too:
https://tinyurl.com/229dl6qd
https://tinyurl.com/22mdfkf3
https://tinyurl.com/2a9wee38
Peter van Westen's Avatar Peter van Westen ADMIN
Not sure why you would get the "WebAssetManager is locked" message. As that module is a 'custom' module. Those don't load any assets.
So I guess that is caused by a different module you are loading through ReReplacer.
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
I have switched to Cassiopeia.
I have unpublished all modules except #193.
I have unpublished all RR items except this one that is not working.

As soon as I order MA after RR, then I get the following "WebAssetManager is locked" error:
A PHP Exception occurred on your site. Here you can find the stack trace:

Exception Type: Joomla\CMS\WebAsset\Exception\InvalidActionException
File: /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/WebAsset/WebAssetManager.php
Line: 165
Message: WebAssetManager is locked

#0 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Cache/Controller/CallbackController.php(107): Joomla\CMS\WebAsset\WebAssetManager->reset()
#1 /home/customer/www/new.retaildisplayusa.com/public_html/plugins/system/t3/includes/core/t3.php(528) : eval()'d code(630): Joomla\CMS\Cache\Controller\CallbackController->get(Array, Array, 'mod_customcfcd9...', true, Array)
#2 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Document/Renderer/Html/ModuleRenderer.php(93): Joomla\CMS\Helper\_ModuleHelper::moduleCache(Object(stdClass), Object(Joomla\Registry\Registry), Object(stdClass))
#3 /home/customer/www/new.retaildisplayusa.com/public_html/plugins/system/modulesanywhere/src/Replace.php(581): Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(Object(stdClass), Array)
#4 /home/customer/www/new.retaildisplayusa.com/public_html/plugins/system/modulesanywhere/src/Replace.php(498): RegularLabs\Plugin\System\ModulesAnywhere\Replace::processModule('193', Array, Array, 'components')
#5 /home/customer/www/new.retaildisplayusa.com/public_html/plugins/system/modulesanywhere/src/Replace.php(686): RegularLabs\Plugin\System\ModulesAnywhere\Replace::processMatch('changeFinalHtmlOutput('\nonAfterRender()
#12 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php(486): Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(Object(Joomla\Event\Event))
#13 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Application/EventAware.php(111): Joomla\Event\Dispatcher->dispatch('onAfterRender', Object(Joomla\Event\Event))
#14 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Application/CMSApplication.php(1031): Joomla\CMS\Application\WebApplication->triggerEvent('onAfterRender')
#15 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Application/SiteApplication.php(724): Joomla\CMS\Application\CMSApplication->render()
#16 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Application/CMSApplication.php(298): Joomla\CMS\Application\SiteApplication->render()
#17 /home/customer/www/new.retaildisplayusa.com/public_html/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#18 /home/customer/www/new.retaildisplayusa.com/public_html/index.php(32): require_once('/home/customer/...')
#19 {main}
Request information

GET variables

Array
(
)
POST variables

Array
(
)
COOKIE variables

Array
(
[_ga] => GA1.1.1058002653.1693504119
[config] => 4
[vmapply] => -1
[product785] => 0
[b3da5e0ab88d9052ccb7f84e73d0a626] => de8dc2feebe2b18879b4f5313961288b
[dfa3cfbe8e3533153e3e06453d37254a] => 074aebb9f56e946302d40a2bb6ffab2d
[_ga_BKX2D59R6L] => GS1.1.1693594577.5.1.1693594854.0.0.0
)
REQUEST variables

Array
(
[_ga] => GA1.1.1058002653.1693504119
[config] => 4
[vmapply] => -1
[product785] => 0
[b3da5e0ab88d9052ccb7f84e73d0a626] => de8dc2feebe2b18879b4f5313961288b
[dfa3cfbe8e3533153e3e06453d37254a] => 074aebb9f56e946302d40a2bb6ffab2d
[_ga_BKX2D59R6L] => GS1.1.1693594577.5.1.1693594854.0.0.0
[keyword] =>
)
SERVER variables

Array
(
[REDIRECT_HTTPS] => on
[REDIRECT_UNIQUE_ID] => ZPI09K9R6yQe7ekAzrwOnAAAAAM
[REDIRECT_HTTP_AUTHORIZATION] =>
[REDIRECT_STATUS] => 200
[HTTPS] => on
[UNIQUE_ID] => ZPI09K9R6yQe7ekAzrwOnAAAAAM
[HTTP_AUTHORIZATION] =>
[HTTP_X_PORT] => 52203
[HTTP_X_REAL_IP] => 199.115.195.7
[HTTP_X_FORWARDED_PROTO] => https
[HTTP_HOST] => new.retaildisplayusa.com
[HTTP_X_ACCEPT_ENCODING] => gzip, deflate, br
[HTTP_CONNECTION] => close
[HTTP_PRAGMA] => no-cache
[HTTP_CACHE_CONTROL] => no-cache
[HTTP_SEC_CH_UA] => "Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"
[HTTP_SEC_CH_UA_MOBILE] => ?0
[HTTP_SEC_CH_UA_PLATFORM] => "macOS"
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_DNT] => 1
[HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
[HTTP_SEC_FETCH_SITE] => cross-site
[HTTP_SEC_FETCH_MODE] => navigate
[HTTP_SEC_FETCH_USER] => ?1
[HTTP_SEC_FETCH_DEST] => document
[HTTP_REFERER] => regularlabs.com/
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9
[HTTP_COOKIE] => _ga=GA1.1.1058002653.1693504119; config=4; vmapply=-1; product785=0; b3da5e0ab88d9052ccb7f84e73d0a626=de8dc2feebe2b18879b4f5313961288b; dfa3cfbe8e3533153e3e06453d37254a=074aebb9f56e946302d40a2bb6ffab2d; _ga_BKX2D59R6L=GS1.1.1693594577.5.1.1693594854.0.0.0
[PATH] => /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => new.retaildisplayusa.com
[SERVER_ADDR] => 35.206.92.50
[SERVER_PORT] => 443
[REMOTE_ADDR] => 199.115.195.7
[DOCUMENT_ROOT] => /home/customer/www/new.retaildisplayusa.com/public_html
[REQUEST_SCHEME] => https
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /home/customer/www/new.retaildisplayusa.com/public_html
[SERVER_ADMIN] => [no address given]
[SCRIPT_FILENAME] => /home/customer/www/new.retaildisplayusa.com/public_html/index.php
[REMOTE_PORT] => 12136
[REDIRECT_URL] => /slatwall/textured-slatwall/diamond-plate-slatwall/trim-textured-slatwall-detail
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.0
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /slatwall/textured-slatwall/diamond-plate-slatwall/trim-textured-slatwall-detail
[SCRIPT_NAME] => /index.php
[PHP_SELF] => /index.php
[REQUEST_TIME_FLOAT] => 1693594868.53784
[REQUEST_TIME] => 1693594868
)
Peter van Westen's Avatar Peter van Westen ADMIN
Seems to by caused by something in the t3 plugin (so your t3 template).
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
I tested that, by changing to Casseopia, and disabling the T3 plugin.

I still get this error:
A PHP Exception occurred on your site. Here you can find the stack trace:

Exception Type: Joomla\CMS\WebAsset\Exception\InvalidActionException
File: /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/WebAsset/WebAssetManager.php
Line: 165
Message: WebAssetManager is locked

#0 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Cache/Controller/CallbackController.php(107): Joomla\CMS\WebAsset\WebAssetManager->reset()
#1 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Helper/ModuleHelper.php(630): Joomla\CMS\Cache\Controller\CallbackController->get(Array, Array, 'mod_customcfcd9...', true, Array)
#2 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Document/Renderer/Html/ModuleRenderer.php(93): Joomla\CMS\Helper\ModuleHelper::moduleCache(Object(stdClass), Object(Joomla\Registry\Registry), Object(stdClass))
#3 /home/customer/www/new.retaildisplayusa.com/public_html/plugins/system/modulesanywhere/src/Replace.php(581): Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(Object(stdClass), Array)
#4 /home/customer/www/new.retaildisplayusa.com/public_html/plugins/system/modulesanywhere/src/Replace.php(498): RegularLabs\Plugin\System\ModulesAnywhere\Replace::processModule('193', Array, Array, 'components')
#5 /home/customer/www/new.retaildisplayusa.com/public_html/plugins/system/modulesanywhere/src/Replace.php(686): RegularLabs\Plugin\System\ModulesAnywhere\Replace::processMatch('changeFinalHtmlOutput('...')
#11 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Plugin/CMSPlugin.php(284): RegularLabs\Library\SystemPlugin->onAfterRender()
#12 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/vendor/joomla/event/src/Dispatcher.php(486): Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(Object(Joomla\Event\Event))
#13 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Application/EventAware.php(111): Joomla\Event\Dispatcher->dispatch('onAfterRender', Object(Joomla\Event\Event))
#14 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Application/CMSApplication.php(1031): Joomla\CMS\Application\WebApplication->triggerEvent('onAfterRender')
#15 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Application/SiteApplication.php(724): Joomla\CMS\Application\CMSApplication->render()
#16 /home/customer/www/new.retaildisplayusa.com/public_html/libraries/src/Application/CMSApplication.php(298): Joomla\CMS\Application\SiteApplication->render()
#17 /home/customer/www/new.retaildisplayusa.com/public_html/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#18 /home/customer/www/new.retaildisplayusa.com/public_html/index.php(32): require_once('/home/customer/...')
#19 {main}
Request information

GET variables

Array
(
)
POST variables

Array
(
)
COOKIE variables

Array
(
[config] => 4
[vmapply] => -1
[product785] => 0
[_gid] => GA1.2.806512444.1693595001
[_ga] => GA1.1.1058002653.1693504119
[_clck] => om4l5u|2|fen|0|1339
[_ga_YTPP95W6H4] => GS1.2.1693595001.1.0.1693595001.0.0.0
[_clsk] => l30zed|1693595002177|1|1|q.clarity.ms/collect
[b3da5e0ab88d9052ccb7f84e73d0a626] => b03e455096962df484d1e7ba958f77ef
[dfa3cfbe8e3533153e3e06453d37254a] => 40699888249e2a0d50122704e02abccd
[_ga_BKX2D59R6L] => GS1.1.1693594577.5.1.1693596509.0.0.0
)
REQUEST variables

Array
(
[config] => 4
[vmapply] => -1
[product785] => 0
[_gid] => GA1.2.806512444.1693595001
[_ga] => GA1.1.1058002653.1693504119
[_clck] => om4l5u|2|fen|0|1339
[_ga_YTPP95W6H4] => GS1.2.1693595001.1.0.1693595001.0.0.0
[_clsk] => l30zed|1693595002177|1|1|q.clarity.ms/collect
[b3da5e0ab88d9052ccb7f84e73d0a626] => b03e455096962df484d1e7ba958f77ef
[dfa3cfbe8e3533153e3e06453d37254a] => 40699888249e2a0d50122704e02abccd
[_ga_BKX2D59R6L] => GS1.1.1693594577.5.1.1693596509.0.0.0
[keyword] =>
)
SERVER variables

Array
(
[REDIRECT_HTTPS] => on
[REDIRECT_UNIQUE_ID] => ZPI7gKUHG0k_BQtdi1dNuwAAAAA
[REDIRECT_HTTP_AUTHORIZATION] =>
[REDIRECT_STATUS] => 200
[HTTPS] => on
[UNIQUE_ID] => ZPI7gKUHG0k_BQtdi1dNuwAAAAA
[HTTP_AUTHORIZATION] =>
[HTTP_X_PORT] => 9113
[HTTP_X_REAL_IP] => 199.115.195.28
[HTTP_X_FORWARDED_PROTO] => https
[HTTP_HOST] => new.retaildisplayusa.com
[HTTP_X_ACCEPT_ENCODING] => gzip, deflate, br
[HTTP_CONNECTION] => close
[HTTP_PRAGMA] => no-cache
[HTTP_CACHE_CONTROL] => no-cache
[HTTP_SEC_CH_UA] => "Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"
[HTTP_SEC_CH_UA_MOBILE] => ?0
[HTTP_SEC_CH_UA_PLATFORM] => "macOS"
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_DNT] => 1
[HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
[HTTP_SEC_FETCH_SITE] => cross-site
[HTTP_SEC_FETCH_MODE] => navigate
[HTTP_SEC_FETCH_USER] => ?1
[HTTP_SEC_FETCH_DEST] => document
[HTTP_REFERER] => regularlabs.com/
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9
[HTTP_COOKIE] => config=4; vmapply=-1; product785=0; _gid=GA1.2.806512444.1693595001; _ga=GA1.1.1058002653.1693504119; _clck=om4l5u|2|fen|0|1339; _ga_YTPP95W6H4=GS1.2.1693595001.1.0.1693595001.0.0.0; _clsk=l30zed|1693595002177|1|1|q.clarity.ms/collect; b3da5e0ab88d9052ccb7f84e73d0a626=b03e455096962df484d1e7ba958f77ef; dfa3cfbe8e3533153e3e06453d37254a=40699888249e2a0d50122704e02abccd; _ga_BKX2D59R6L=GS1.1.1693594577.5.1.1693596509.0.0.0
[PATH] => /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => new.retaildisplayusa.com
[SERVER_ADDR] => 35.206.92.50
[SERVER_PORT] => 443
[REMOTE_ADDR] => 199.115.195.28
[DOCUMENT_ROOT] => /home/customer/www/new.retaildisplayusa.com/public_html
[REQUEST_SCHEME] => https
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /home/customer/www/new.retaildisplayusa.com/public_html
[SERVER_ADMIN] => [no address given]
[SCRIPT_FILENAME] => /home/customer/www/new.retaildisplayusa.com/public_html/index.php
[REMOTE_PORT] => 12136
[REDIRECT_URL] => /slatwall/textured-slatwall/diamond-plate-slatwall/trim-textured-slatwall-detail
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.0
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /slatwall/textured-slatwall/diamond-plate-slatwall/trim-textured-slatwall-detail
[SCRIPT_NAME] => /index.php
[PHP_SELF] => /index.php
[REQUEST_TIME_FLOAT] => 1693596544.90423
[REQUEST_TIME] => 1693596544
)

HOWEVER, is ordering MA after RR correct? And is it a red hearing anyways?
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
Confidential information:
(hidden)
Odin Mayland's Avatar Odin Mayland
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
I am unable to connect via ftp: "Login authentication failed"
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Weird thing is that the error is only there when not logged in.
If you log in on the front end, the site loads fine and shows the module.
Does not look like an issue caused by my extensions, but by something else you have going on...
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
I logged out of the backend and in to the frontend, but it makes no difference.

I have cloned the site onto a test server that I can upgrade to php 8.1 and therefore all your extensions. It still doesn't work.

Reordering MA after RR, still be the "WebAssetManager is locked".
Is this reordering necessary to get it to work? If not, then its just a red hearing.
Odin Mayland's Avatar Odin Mayland
I also pasted {module id="193"} directly into templates/ja_autoshop/html/com_virtuemart/productdetails/default.php and it worked fine.

So to me that points to some conflict RR.
Odin Mayland's Avatar Odin Mayland
I reset the ftp password and it works with regular FTP.
Odin Mayland's Avatar Odin Mayland
I have to launch this site so I have cloned it here:
Confidential information:
(hidden)
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription