Keyword

Upgraded to J2.5: K2 Content Modules not displayin

  • ss rsc
  • ss rsc's Avatar Topic Author
  • Offline
  • New Member
More
11 years 5 months ago - 11 years 5 months ago #112581 by ss rsc
I am VERY new to Joomla, but not to PHP or cms in general.

I am on Linux apache PHP 5.3

I just upgraded a site from J1.5 to J2.5. (I used Jupgrade.)

I downloaded and installed the version of K2 for J2.5.

There are several places on the front page where K2 Content Mods are supposed to appear.

I began recreating the K2 Content Mods as follows:

*Go to the Module manager
* Duplicate the K2 Content Module
* in a separate browser bring up the edit page for the original J1.5 Content Mod
* Copy the settings
* clear my browser cache (Joomla cache is turned off)

Nothing shows up.

Wherever the module is supposed to display I get:

{module NAME_OF_MODULE}

What is even weirder is that I am getting the same thing for modules I haven't even reproduced yet.

I don't even know where to look for the problem. To judge by the html that appears in the browser, the mod_k2_content/tmpl/Default/default.php isn't even being loaded.

The html reads:
<div style="box-shadow:rgba(0,0,0,0.5) 0px 0px 24px; border-radius:10px 10px 10px 10px; margin:4px;
background:#C9F; border:2px solid; border-top:none !important; border-left:none !important;
-moz-border-radius:10px 10px 10px 10px; /* Firefox 3.6 and earlier */ width:340px;
height:auto; float:right; overflow:hidden; ">{module NAME_OF_MODULE}</div>

None of the K2 Content markup is present.

This is driving me nuts.

Any and all advice would be greatly appreciated.

Thanks for reading.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 5 months ago #112582 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Upgraded to J2.5: K2 Content Modules not displayin
Hello there,

It appears you have an issue with your template. Are you using an override for your modules (modules.php).
If so try removing this file (it is located in your template's html folder) and see what happens.

I think some outdated code is causing these issues.

Browsing your site with the default Joomla! templates will help you determine if it is a template issue.
You can just add ?template=atomic or ?template=system and see your see your site with the default templates. PS. you need to also have a published module for this template as well.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • ss rsc
  • ss rsc's Avatar Topic Author
  • Offline
  • New Member
More
11 years 5 months ago #112583 by ss rsc
Thanks for your reply.

I have just tested with all the other available templates, atomic, beez etc ...

Same result in all cases.

What do you think?

What else might it be?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 5 months ago #112584 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Upgraded to J2.5: K2 Content Modules not displayin
I am afraid you have to change your overrides.

It is possible since it was a J! 1.5 site that your overrides are very old and not compatible with K2 2.6.6.
You can try with the default modules.

Also did you locate modules.php in your template folder?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • ss rsc
  • ss rsc's Avatar Topic Author
  • Offline
  • New Member
More
11 years 5 months ago - 11 years 5 months ago #112585 by ss rsc
Thanks again.

There's no modules.php in my template's html folder.

You say "You can try with the default modules." Try what? Sorry to be dense but I don't follow.

It would make sense that my "overrides are very old and not compatible with K2". I'd like to look into this. Where would I look for an override? How will I know it when I see it?

Just for the record, I just created a new position at the bottom of my index.php. I put in:
<div id="ss_test" class="clear"><span>XXXXXXXXXXXX</span><jdoc:include type="modules" name="ss_test" /><span>YYYYYYYYYY</span></div>

I then tested the position (using the admin interface) with a module that I know renders correctly. It showed up just fine. Then I tested with my K2 content mod. Nothing came out at all. not even the {module NAME_OF_MODULE} output I described above.

Does this tell us something?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 5 months ago #112586 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Upgraded to J2.5: K2 Content Modules not displayin
Your overrides are located at /templates/YOURTEMPLATE/html/mod_k2_content

You can a grab a new copy of K2 and check the files located under /modules/mod_k2_content/tmpl to spot any major differences.

I would recommend reading or watching a tutorial about Joomla! overriding.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • ss rsc
  • ss rsc's Avatar Topic Author
  • Offline
  • New Member
More
11 years 5 months ago - 11 years 5 months ago #112587 by ss rsc
OK

I already had an updated copy of K2 with mod_k2_content.

My present understanding is that the basic method to do this override is to copy

ROOT/modules/mod_k2_content/tmpl/Default

to

ROOT/template/MYTMPL/html/mod_k2_content/Default

So I did exactly that.

And nothing happened. Same exact results.

I'm getting the impression that the mechanism that's supposed to render the module is broken somehow.

Any ideas?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 5 months ago #112588 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Upgraded to J2.5: K2 Content Modules not displayin
That can also be caused be a non J! 2.5 compatible extension.

If you know your way around db's you should start a clean install and migrate the K2 content,
you can also try activating/deactivating extension to find out which is causing you issues.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum