Joomla 4 running hot_app template

  • bob.stewart12
  • Topic Author
  • Visitor
  • Visitor
2 years 1 month ago #48658 by bob.stewart12
Joomla 4 running hot_app template was created by bob.stewart12
Hi Guys,

Running joomla 4 and hot_app template with joomla 'workflow' active.

When an admin person logs in and gets the option to edit an article from the front end, they get this:
Notice: Undefined index: variant in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 39

Warning: Invalid argument supplied for foreach() in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 39

Notice: Undefined index: variant in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 78

Warning: implode(): Invalid arguments passed in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 78

Notice: Undefined index: charsets in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 79

Warning: Invalid argument supplied for foreach() in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 79

Notice: Undefined offset: 1 in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 216

Notice: Undefined offset: 2 in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 217

Notice: Undefined offset: 3 in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 218

Notice: Undefined offset: 4 in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 219

Notice: Undefined offset: 5 in /home/storage/074/3671074/user/htdocs/templates/hot_app/index.php on line 220

This happens regardless which Browser. Really need this dealt with as it is for a client of mine. I like your Sparky tech, really good but if its not stable I will have to abandon it for another template system.

I have installed sparky_framework as wellas the hot_app template, do I need both installed?
 

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
2 years 1 month ago #48659 by milos
Hello,

You should install only the hot_app template. You should not have both sparky_framework and hot_app installed. So, please uninstall sparky_framework.

If you want to install the template with demo data, use hot_app4x_hotstart.zip and installation guide from www.hotjoomlatemplates.com/documentation

If you want template only, without demo data, only in this case you should use hot_app.

The errors you mentioned are not the errors. They are just harmless notices and they would not be there if your server was configured properly (not to show them). Anyway, you can fix the notices you have in Joomla frontend, if you edit the file /templates/hot_app/index.php and change this:
Code:
foreach($g_o['variant'] as $key2 => $value) { if (strpos($value, "italic")) { $italic = "ital,"; } }

with this:
Code:
if ($g_o['variant']) { foreach($g_o['variant'] as $key2 => $value) { if (strpos($value, "italic")) { $italic = "ital,"; } } }

Change this:
Code:
foreach($g_o['charsets'] as $subset) { $pos = strpos($subsets, $subset); if( $pos === false ) { $subsets = $subsets . "," . $subset; } }

with this:
Code:
if ($g_o['charsets']) { foreach($g_o['charsets'] as $subset) { $pos = strpos($subsets, $subset); if( $pos === false ) { $subsets = $subsets . "," . $subset; } } }

and delete these lines (because this template doesn't need it):
Code:
$doc->addStyleDeclaration(":root { --sparkycolor1: ".$sparkycolor[0]."; --sparkycolor2: ".$sparkycolor[1]."; --sparkycolor3: ".$sparkycolor[2]."; --sparkycolor4: ".$sparkycolor[3]."; --sparkycolor5: ".$sparkycolor[4]."; --sparkycolor6: ".$sparkycolor[5]."; }");

If there are more issues, let me know.

Regards,
Milos

Please Log in to join the conversation.

Time to create page: 0.158 seconds
Powered by Kunena Forum