[Skip to main content](#vessel-content)

#   mojo\_redirect

##

- **[bvitl](/forum/user/38376-bvitl "View bvitl's Profile")**
- [![bvitl's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/fish.gif)](/forum/user/38376-bvitl "View bvitl's Profile") Topic Author
- [ Offline](/forum/user/38376-bvitl)

Less More

- Posts: 9
- Thank you received: 1
-
-
-

2 years 6 months ago [\#360434](#360434) by [bvitl](/forum/user/38376-bvitl "View bvitl's Profile")  *[mojo\_redirect](/forum/30-integrations/908055-mojo-redirect#360434 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.1  When click on &quot;System&quot; in Admin panel in eror log php we have: &#91;19-Apr-2024 14:45:42&#93; WARNING: &#91;pool www&#93; child 417442 said into stderr: &quot;NOTICE: PHP message: PHP Warning: Trying to access array offset on value of type null in /var/www/site/administrator/components/com&#95;installer/src/Model/DatabaseModel.php on line 180&quot;  I found a problem with pkg mojo&#95;redirect. If you create a folder sql/updates in the /plugins/system/mijo&#95;redirect folder then a WARNING is not logged.")* was created by *[bvitl](/forum/user/38376-bvitl "View bvitl's Profile")*

-- HikaShop version -- : 5.0.4
-- Joomla version -- : 4.4.4
-- PHP version -- : 8.1

When click on "System" in Admin panel in eror log php we have:
[19-Apr-2024 14:45:42] WARNING: [pool www] child 417442 said into stderr: "NOTICE: PHP message: PHP Warning: Trying to access array offset on value of type null in /var/www/site/administrator/components/com_installer/src/Model/DatabaseModel.php on line 180"

I found a problem with pkg mojo_redirect.
If you create a folder sql/updates in the /plugins/system/mijo_redirect folder
then a WARNING is not logged.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDgwNTUtbW9qby1yZWRpcmVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

2 years 6 months ago -  2 years 6 months ago [\#360437](#360437) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[mojo\_redirect](/forum/30-integrations/908055-mojo-redirect#360437 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.1  When click on &quot;System&quot; in Admin panel in eror log php we have: &#91;19-Apr-2024 14:45:42&#93; WARNING: &#91;pool www&#93; child 417442 said into stderr: &quot;NOTICE: PHP message: PHP Warning: Trying to access array offset on value of type null in /var/www/site/administrator/components/com&#95;installer/src/Model/DatabaseModel.php on line 180&quot;  I found a problem with pkg mojo&#95;redirect. If you create a folder sql/updates in the /plugins/system/mijo&#95;redirect folder then a WARNING is not logged.")*

Hi,

Thank you for you feedback. The problem is actually in the administrator/components/com_installer/src/Model/DatabaseModel.php file.
The code Code:

$folderTmp = (string) $installationXML-&gt;update-&gt;schemas-&gt;schemapath[0];

assumes that any extension installed has either a sql/updates folder or a schemas node in the XML file of the extension.
This mijo_redirect plugin adds nothing to the database, so it doesn't requires a sql/updates folder nor a schemas node in the XML file.
The Joomla documentation on how to create a plugin for Joomla 4 also doesn't mention anything about this:
[ docs.joomla.org/J4.x:Creating\_a\_Plugin\_for\_Joomla](https://docs.joomla.org/J4.x:Creating_a_Plugin_for_Joomla)
So it's actually the file administrator/components/com_installer/src/Model/DatabaseModel.php which needs to be modified.
The line Code:

if ($installationXML !== null) {

just before the line of the notice should be changed to something like this : Code:

if ($installationXML !== null &amp;&amp; isset($installationXML-&gt;update-&gt;schemas-&gt;schemapath)) {

I would recommend reporting the issue on Joomla's github:
[ github.com/joomla/joomla-cms/issues](https://github.com/joomla/joomla-cms/issues)

Last edit: 2 years 6 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [bvitl](/forum/user/38376-bvitl "View bvitl's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDgwNTUtbW9qby1yZWRpcmVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bvitl](/forum/user/38376-bvitl "View bvitl's Profile")**
- [![bvitl's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/fish.gif)](/forum/user/38376-bvitl "View bvitl's Profile") Topic Author
- [ Offline](/forum/user/38376-bvitl)

Less More

- Posts: 9
- Thank you received: 1
-
-
-

2 years 6 months ago [\#360447](#360447) by [bvitl](/forum/user/38376-bvitl "View bvitl's Profile")  Replied by *[bvitl](/forum/user/38376-bvitl "View bvitl's Profile")* on topic *[mojo\_redirect](/forum/30-integrations/908055-mojo-redirect#360447 "-- HikaShop version -- : 5.0.4 -- Joomla version -- : 4.4.4 -- PHP version -- : 8.1  When click on &quot;System&quot; in Admin panel in eror log php we have: &#91;19-Apr-2024 14:45:42&#93; WARNING: &#91;pool www&#93; child 417442 said into stderr: &quot;NOTICE: PHP message: PHP Warning: Trying to access array offset on value of type null in /var/www/site/administrator/components/com&#95;installer/src/Model/DatabaseModel.php on line 180&quot;  I found a problem with pkg mojo&#95;redirect. If you create a folder sql/updates in the /plugins/system/mijo&#95;redirect folder then a WARNING is not logged.")*

I now uninstalled the plugin and remove folders sql/updates and then reinstalled it.
WARNING is not logged also.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDgwNTUtbW9qby1yZWRpcmVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.166 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
