It is currently Sun Sep 05, 2010 3:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Error: Invalid argument
PostPosted: Fri Mar 06, 2009 5:25 pm 

Joined: Fri Mar 06, 2009 5:02 pm
Posts: 1
I like the sound of this plugin, but when I try to search the forums I get this:

Code:
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\joomla4g\plugins\search\forums.php on line 208

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\joomla4g\plugins\search\forums.php on line 218


Any ideas?

Also, I noted this before I downloaded:

Quote:
What you need to know
Tech Note: The core wrapper class of Joomla! 1.5 has a limitation in that it doesn't allow parameters to be passed to the wrapper, and from there to the page that is loaded. If (like us) you need to pass parameters to it then a change is required to the core files. We provide that 3 line change as part of the extension. More information about this, and what exactly it does, can be found on our tips and tricks page (coming soon!).


Now, noob question - does/can this have anything to do with what URLs are displayed with the wrapper at all? I.e. the Joomla! wrapper URL is normally static, but is it possible to have dynamic URLs show up so I or users can link to forum pages in the wrapper??

Thanks


Top
 Profile  
 
 Post subject: Re: Error: Invalid argument
PostPosted: Mon Mar 09, 2009 9:53 am 

Joined: Mon Dec 01, 2008 5:47 pm
Posts: 153
Hi

Not sure of the first error, I'll do some testing.

As for the links, if you do a search for the item you're after you can select that link (from the search results), as that will be the proper wrapper URL required.

Ben
Connectage Support

_________________
Regards

Ben
Connectage Support


Top
 Profile  
 
 Post subject: Re: Error: Invalid argument
PostPosted: Mon Mar 09, 2009 10:20 am 

Joined: Mon Dec 01, 2008 5:47 pm
Posts: 153
Hi

The problem is that we assume the database tables for phpBB are 'phpbb_'. For example, the posts should be stored in the table phpbb_posts. If they aren't, our code doesn't catch the error so you get those warnings output to screen instead of any valid results.

It's line 201, replace the line
Code:
. ' FROM phpbb_posts p'


with

Code:
. ' FROM <tablename> p'


and that error should disappear for you. I'll add this as an option in the plugin parameters for the next release.

If you're not comfortable with making the change to the code, let me know and I'll post a version of that file with the correct table name for you.

Ben
Connectage Support

_________________
Regards

Ben
Connectage Support


Top
 Profile  
 
 Post subject: Re: Error: Invalid argument
PostPosted: Mon Mar 23, 2009 6:45 pm 

Joined: Mon Mar 23, 2009 6:37 pm
Posts: 4
Same here. Changed the forum.php as directed (with a php compliant editor) and updated my site. Even went as far as disabling and enabling the plugin several times and waiting for cache to clear.

Image

Any other ideas?

My PHP virtual directory is http://www.itcs4u.com/phpbb3
PHP physical directory is D:\Hosting\4034481\html\phpbb3
My Joomla virtual directory is http://www.itcs4u.com/joomla
Joomla physical directory is D:\Hosting\4034481\html\Joomla

EDIT:
PHP Built on: Windows NT P3NW8SH009 6.0 build 6001
Database Version: 5.0.67.d7-ourdelta-log
Database Collation: utf8_general_ci
PHP Version: 5.2.5
Web Server: Microsoft-IIS/7.0
Web Server to PHP interface: cgi-fcgi
Joomla! Version: Joomla! 1.5.9 Production/Stable [ Vatani ] 9-January-2009 23:00 GMT
MySQL 5, 2 seperate DB's, one for Joomla, one for phpBB3.

ANOTHER EDIT:
I think I see where the issue is. It looks like that this plugin is not only dependant on the phpbb_ table setting, but also phpBB3 and Joomla must share the same DB. Is there anyway to option in the database connection string?


Top
 Profile  
 
 Post subject: Re: Error: Invalid argument
PostPosted: Tue Mar 24, 2009 5:47 pm 

Joined: Mon Dec 01, 2008 5:47 pm
Posts: 153
Hi

There isn't any option to do that yet. I'll post a more detailed response under your feature request.

_________________
Regards

Ben
Connectage Support


Top
 Profile  
 
 Post subject: Re: Error: Invalid argument
PostPosted: Tue Mar 24, 2009 5:58 pm 

Joined: Mon Mar 23, 2009 6:37 pm
Posts: 4
Thanks Ben!


Top
 Profile  
 
 Post subject: Re: Error: Invalid argument
PostPosted: Tue Jul 20, 2010 8:58 pm 

Joined: Tue Jul 20, 2010 8:43 pm
Posts: 1
I have the same problem. To me it doesn't make sense to use the same database for Joomla and PHP. Mainly because of the manual database updates that you unfortunately still have to do on PHPBB3.

Good luck,

Mark


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Template made by DEVPPL Flash Games