JAM (Joomla Advanced Message) Problem

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
Kurtuba
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Feb 24, 2006 5:30 pm

JAM (Joomla Advanced Message) Problem

Post by Kurtuba » Sun Oct 21, 2007 4:13 pm

I installed but don't used it..

I used J 1.5 RC3

Warning: func(/template.php) [function.func]: failed to open stream: No such file or directory in /.../components/com_jam/libraries/template.php on line 96

Fatal error: func() [function.require]: Failed opening required '/template.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /.../components/com_jam/libraries/template.php on line 96

86 - function func( $string )
87 - {
88 - // What function, class and file do we have?
89 - $parts = explode( '.', $string);
90 - $func = array_pop( $parts );
91 - $class = array_pop( $parts );
92 - $file = implode( DS, $parts);
93 - $file = $file ? $file.DS.$class : $class;
94 -
95 - // Load the class
96 - require_once( $this->_dir.DS.$file.'.php' );
97 -
98 - // Execute the action
99 - $args = func_get_args();
100 - array_shift( $args );
111 - return call_user_func_array( array( 'JAMT_'.$class, $func ), $args );
112 - }

Extensions page: http://extensions.joomla.org/component/ ... Itemid,35/
Last edited by Kurtuba on Sun Oct 21, 2007 4:17 pm, edited 1 time in total.

User avatar
nicholai
Joomla! Explorer
Joomla! Explorer
Posts: 293
Joined: Sun Jun 11, 2006 10:29 am
Location: Netherlands
Contact:

Re: JAM (Joomla Advanced Message) Problem

Post by nicholai » Tue Oct 23, 2007 8:12 pm

Hello,

Please submit your bug by the website next time.
This bug has to do with the new install system in the latest beta,
after these reports I have modified the install system a bit.
Please wait for the next stable version and try again.

Regards
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!

zzaamine
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Oct 08, 2007 11:43 am

Re: JAM (Joomla Advanced Message) Problem

Post by zzaamine » Thu Nov 08, 2007 12:09 pm

i too have the same problem with the newer version
JAM 0.9.4b  ???
Last edited by zzaamine on Thu Nov 08, 2007 12:40 pm, edited 1 time in total.

zzaamine
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Oct 08, 2007 11:43 am

Re: JAM (Joomla Advanced Message) Problem

Post by zzaamine » Thu Nov 08, 2007 12:18 pm

i get this error both in the frontend and at the backend
I use,
Joomla 1.5RC3
JAM 0.9.4b
Warning: func() [function.func]: open_basedir restriction in effect. File(/template.php) is not within the allowed path(s): (/home/fortunat/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/fortunat/public_html/demo2/components/com_jam/libraries/template.php on line 98

Warning: func(/template.php) [function.func]: failed to open stream: Operation not permitted in /home/fortunat/public_html/demo2/components/com_jam/libraries/template.php on line 98

Fatal error: func() [function.require]: Failed opening required '/template.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fortunat/public_html/demo2/components/com_jam/libraries/template.php on line 98
please help me
thanks
Za Mine

User avatar
dereque
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Mon Oct 01, 2007 12:18 pm
Location: Bucharest

Re: JAM (Joomla Advanced Message) Problem

Post by dereque » Mon Nov 19, 2007 5:23 pm

Hello,

As you can see from screenshot i have a problem with CSS. It looks like template's CSS is overriding JAM's CSS styles. Because of this reason it looks so weird. I need help.

Best wishes,
Fatih
You do not have the required permissions to view the files attached to this post.
Last edited by dereque on Tue Nov 20, 2007 12:43 pm, edited 1 time in total.
Open Source Really Matters !!!

User avatar
nicholai
Joomla! Explorer
Joomla! Explorer
Posts: 293
Joined: Sun Jun 11, 2006 10:29 am
Location: Netherlands
Contact:

Re: JAM (Joomla Advanced Message) Problem

Post by nicholai » Tue Nov 20, 2007 3:18 pm

dereque wrote: Hello,

As you can see from screenshot i have a problem with CSS. It looks like template's CSS is overriding JAM's CSS styles. Because of this reason it looks so weird. I need help.

Best wishes,
Fatih
Lol I ment my own forum at joomladev.org.
Anyway:

The problem lays in the li style of your website template.
To make JAM overriden those settings you may use the following code for your JAM template:
(/components/com_jam/templates/classic/template.php. Just copy the fuction:)

Code: Select all

	function Initialize()
	{
		$template	=& JAMTemplate::getInstance();

		// Add template stuff
		JHTML::script( 'script.js', 'components/com_jam/templates/'.$template->name().'/scripts/');
		echo '<link rel="stylesheet" href="'.JURI::root(true).'/components/com_jam/templates/classic/css/template.css" type="text/css" />';

		// Add stuff used by the template
		JHTML::script('tabs.js');

		JAMLoaders::Librarie( 'menu');
	}
You still might need to modify the JAM-template css a bit to get everything smooth.

Regards
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!

User avatar
dereque
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Mon Oct 01, 2007 12:18 pm
Location: Bucharest

Re: JAM (Joomla Advanced Message) Problem

Post by dereque » Tue Nov 20, 2007 3:29 pm

nicholai wrote:
dereque wrote: Hello,

As you can see from screenshot i have a problem with CSS. It looks like template's CSS is overriding JAM's CSS styles. Because of this reason it looks so weird. I need help.

Best wishes,
Fatih
Lol I ment my own forum at joomladev.org.
Anyway:

The problem lays in the li style of your website template.
To make JAM overriden those settings you may use the following code for your JAM template:
(/components/com_jam/templates/classic/template.php. Just copy the fuction:)

Code: Select all

	function Initialize()
	{
		$template	=& JAMTemplate::getInstance();

		// Add template stuff
		JHTML::script( 'script.js', 'components/com_jam/templates/'.$template->name().'/scripts/');
		echo '<link rel="stylesheet" href="'.JURI::root(true).'/components/com_jam/templates/classic/css/template.css" type="text/css" />';

		// Add stuff used by the template
		JHTML::script('tabs.js');

		JAMLoaders::Librarie( 'menu');
	}
You still might need to modify the JAM-template css a bit to get everything smooth.

Regards
I made it and i am receiving this error now.

Fatal error: Call to undefined method JAMTemplate::name() in
/home/inforoma/public_html/components/com_jam/templates/classic/template.php on line 23
Open Source Really Matters !!!

User avatar
nicholai
Joomla! Explorer
Joomla! Explorer
Posts: 293
Joined: Sun Jun 11, 2006 10:29 am
Location: Netherlands
Contact:

Re: JAM (Joomla Advanced Message) Problem

Post by nicholai » Tue Nov 20, 2007 4:32 pm

dereque wrote: I made it and i am receiving this error now.

Fatal error: Call to undefined method JAMTemplate::name() in
/home/inforoma/public_html/components/com_jam/templates/classic/template.php on line 23
Forgot I made more changes regarding to the template system.
Just override the template librarie with the current one of svn.

Hopefully I did not forget something else now  ;)
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!

User avatar
dereque
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Mon Oct 01, 2007 12:18 pm
Location: Bucharest

Re: JAM (Joomla Advanced Message) Problem

Post by dereque » Tue Nov 20, 2007 6:46 pm

nicholai wrote:
dereque wrote: I made it and i am receiving this error now.

Fatal error: Call to undefined method JAMTemplate::name() in
/home/inforoma/public_html/components/com_jam/templates/classic/template.php on line 23
Forgot I made more changes regarding to the template system.
Just override the template librarie with the current one of svn.

Hopefully I did not forget something else now  ;)
I am so sorry but after installing SVN, totally messed up. In admin panel, when i try to enter global configuration or templates panel i began to receive these errors
  • Fatal error: Class 'JAMLoaders' not found in /home/******/public_html/administrator/components/com_jam/views/templates/view.html.php on line 14
and module in frontpage also trying to show whole page. You can see from screenshot better. And also messages of a user disappeared, i mean not being displayed anymore . But they are still in database. If you wanna see, address is http://www.inforomanya.com

Best wishes,
Fatih
You do not have the required permissions to view the files attached to this post.
Open Source Really Matters !!!

User avatar
nicholai
Joomla! Explorer
Joomla! Explorer
Posts: 293
Joined: Sun Jun 11, 2006 10:29 am
Location: Netherlands
Contact:

Re: JAM (Joomla Advanced Message) Problem

Post by nicholai » Tue Nov 20, 2007 7:40 pm

dereque wrote: I am so sorry but after installing SVN, totally messed up. In admin panel, when i try to enter global configuration or templates panel i began to receive these errors
  • Fatal error: Class 'JAMLoaders' not found in /home/******/public_html/administrator/components/com_jam/views/templates/view.html.php on line 14
and module in frontpage also trying to show whole page. You can see from screenshot better. And also messages of a user disappeared, i mean not being displayed anymore . But they are still in database. If you wanna see, address is http://www.inforomanya.com

Best wishes,
Fatih
You totally misunderstood me here, I ment you shoud only copy the frontend templates classic file, not the whole SVN!
The SVN is a wip and in pre-alpha stage, so not everything is updated yet!

So what should you do now: (We will do it some other way)
- Uninstall the current version of JAM
- Install v0.9.4 from http://www.joomladev.org
- Go to the following file: /components/com_jam/templates/classic/template.php
  And use this patch:

Code: Select all

---  /components/com_jam/templates/classic/template.php --- Line +-24

  $document->addScript( $template->url().'scripts/script.js');
^ echo $template->url().'css/template.css';
  // Add stuff used by the template
So the line 24 should be replaced with the line provided after the '^';

Regards  :pop
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!

User avatar
dereque
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Mon Oct 01, 2007 12:18 pm
Location: Bucharest

Re: JAM (Joomla Advanced Message) Problem

Post by dereque » Wed Nov 21, 2007 8:48 am

- Uninstall the current version of JAM
- Install v0.9.4 from http://www.joomladev.org
- Go to the following file: /components/com_jam/templates/classic/template.php
  And use this patch:

Code: Select all

---  /components/com_jam/templates/classic/template.php --- Line +-24

  $document->addScript( $template->url().'scripts/script.js');
^ echo $template->url().'css/template.css';
  // Add stuff used by the template
So the line 24 should be replaced with the line provided after the '^';
I did exactly what you said and then JAM began not to read its own template.css. You can see better from screenshot. And for you to check, the code in template.php is like this now.

Code: Select all

function Initialize()
	{
		$template	=& JAMTemplate::getInstance();
		$document	=& JFactory::getDocument();
		// Add template stuff
		$document->addScript( $template->url().'scripts/script.js');
		echo $template->url().'css/template.css';
		// Add stuff used by the template
		JHTML::script('tabs.js');

		JAMLoaders::Librarie('menu');
	}
I am a little bit embarrassed to write to you.  :-[Thanks for your interest.

Regards,
Fatih
You do not have the required permissions to view the files attached to this post.
Open Source Really Matters !!!

User avatar
nicholai
Joomla! Explorer
Joomla! Explorer
Posts: 293
Joined: Sun Jun 11, 2006 10:29 am
Location: Netherlands
Contact:

Re: JAM (Joomla Advanced Message) Problem

Post by nicholai » Wed Nov 21, 2007 12:43 pm

dereque wrote:
- Uninstall the current version of JAM
- Install v0.9.4 from http://www.joomladev.org
- Go to the following file: /components/com_jam/templates/classic/template.php
  And use this patch:

Code: Select all

---  /components/com_jam/templates/classic/template.php --- Line +-24

  $document->addScript( $template->url().'scripts/script.js');
^ echo $template->url().'css/template.css';
  // Add stuff used by the template
So the line 24 should be replaced with the line provided after the '^';
I did exactly what you said and then JAM began not to read its own template.css. You can see better from screenshot. And for you to check, the code in template.php is like this now.

Code: Select all

function Initialize()
	{
		$template	=& JAMTemplate::getInstance();
		$document	=& JFactory::getDocument();
		// Add template stuff
		$document->addScript( $template->url().'scripts/script.js');
		echo $template->url().'css/template.css';
		// Add stuff used by the template
		JHTML::script('tabs.js');

		JAMLoaders::Librarie('menu');
	}
I am a little bit embarrassed to write to you.  :-[Thanks for your interest.

Regards,
Fatih
Well again my fault; I should stop advising people when its late and when im sleepy.
Anyway:

Code: Select all

echo '<link href="'.$template->url().'css/template.css" rel="stylesheet" type="text/css" />';
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!

User avatar
dereque
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Mon Oct 01, 2007 12:18 pm
Location: Bucharest

Re: JAM (Joomla Advanced Message) Problem

Post by dereque » Wed Nov 21, 2007 12:55 pm

Thank you so much. This was what i was talking about. Now browser first looking css of jam then global. Thanks again bro.  ;D
Open Source Really Matters !!!

User avatar
nicholai
Joomla! Explorer
Joomla! Explorer
Posts: 293
Joined: Sun Jun 11, 2006 10:29 am
Location: Netherlands
Contact:

Re: JAM (Joomla Advanced Message) Problem

Post by nicholai » Wed Nov 21, 2007 3:38 pm

dereque wrote: Thank you so much. This was what i was talking about. Now browser first looking css of jam then global. Thanks again bro.  ;D
Good to hear. Sorry again for my own faults in providing the fixes.

Regards
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!

User avatar
dereque
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Mon Oct 01, 2007 12:18 pm
Location: Bucharest

Re: JAM (Joomla Advanced Message) Problem

Post by dereque » Thu Nov 22, 2007 8:32 am

Hello Nicholai,

I think i found another bug. There is a problem with module of JAM in IE. When i login with a user in Internet Explorer, still saying to me that i need to login in module. With Firefox there is no problem like this. I have community builder installed and using JAM plugin for CB. 

Best wishes,
Fatih
Open Source Really Matters !!!

User avatar
nicholai
Joomla! Explorer
Joomla! Explorer
Posts: 293
Joined: Sun Jun 11, 2006 10:29 am
Location: Netherlands
Contact:

Re: JAM (Joomla Advanced Message) Problem

Post by nicholai » Thu Nov 22, 2007 4:50 pm

dereque wrote: Hello Nicholai,

I think i found another bug. There is a problem with module of JAM in IE. When i login with a user in Internet Explorer, still saying to me that i need to login in module. With Firefox there is no problem like this. I have community builder installed and using JAM plugin for CB. 

Best wishes,
Fatih
Please post problems on joomladev.org/forums
Confirmed the issue and fixed in v0.9.5
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!


Locked

Return to “Extensions for Joomla! 1.5”