Referrer http://www.xxx.org/node/add/fpss-slide
Nachricht preg_match() expects parameter 2 to be string, array given in /www/htdocs/w009e5c5/xxx/includes/bootstrap.inc in Zeile 761.
Schweregrad Fehler

whats wrong ?

Comments

wilco’s picture

Assigned: Unassigned » wilco

I'm not quite certain what is going on here. I've rolled a new version of the module. Hopefully it will solve your problems.

Anonymous’s picture

I have the same error with v 6.x-1.x-beta2:

warning: preg_match() expects parameter 2 to be string, array given in /home/cmseasyn/public_html/drupal-6/includes/bootstrap.inc on line 771.

SkullSplitter’s picture

same to me :(
# warning: preg_match() expects parameter 2 to be string, array given in /www/htdocs/xxx/includes/bootstrap.inc on line 771.
# warning: preg_match() expects parameter 2 to be string, array given in /www/htdocs/xxx/includes/bootstrap.inc on line 771.

any solutions ?

SkullSplitter’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta2
wilco’s picture

Can you provide me with some information as to your setups? Since this error is happening in another part of the code, I need some idea of what your FPSS settings are? Version of Drupal? PHP?

If you can also try to fun FPSS without any other modules to see if there is a conflict with something.

So far, I've tested it with a wide array of modules going and I've seen no conflicts yet.

dddave’s picture

I confirm this error. I got the message with the one described here #393624: Does not work with i18n.

My system is a XAMP local installation, php 5.2.8, Drupal 6.10.

medieval111’s picture

I can confirm this error too. The slideshow won't load here.
I'm using Drupal 6.10 on EasyWAMP (PHP 5.2.0 & MySQL 5.0.22).

warning: preg_match() expects parameter 2 to be string, array given in C:\EasyWAMP\www\xxxx\includes\bootstrap.inc on line 771.
warning: preg_match() expects parameter 2 to be string, array given in C:\EasyWAMP\www\xxxx\includes\bootstrap.inc on line 771.

davecormier’s picture

This issue is not directly related to the slideshow module. It seems to be occuring in many different contexts... or is a system error that responds to conflicting contrib modules the same way. I am having it... have only node-comment and views module installed.

dddave’s picture

According to this post it seems to be a problem with the module: http://drupal.org/node/408374#comment-1380488

@wilco:

Are there any solutions to be expected within the near future? I would really love to use your module. ;-)

dddave’s picture

Ok, I retried on a liveserver but with the same result. I got the errore described above and in addition:

Unknown column 'n.language' in 'where clause' query: SELECT vid, title FROM drupalnode WHERE (n.language ='de') AND ( type = 'fpss_slideshow') in /is/htdocs/wp1141249_Q7UT4FKE6D/www/drupal6/sites/all/modules/fpss/fpss.module in Zeile 361.

Is there any hope this will be solved? I could really need this module.

Burhank’s picture

Hey guys...
I have the very same problem and I havent sleep in the past 3 days and I didnt find a solution.. SO finally i had to change something in the fpss.module at line 361 so it can work and ignore the language field but I have the Slideshow mixed with all my nodes now and I cant even use it on other languages interface (Cant translate it) but still I guess its something you can use until the Frontpage Slideshow guys release a more stable module and give us some attention...

Open fpss.module and go to line 360 and find:
$sql = "SELECT vid, title FROM {node} WHERE type = '%s'";

Replace it with:
$sql = "SELECT vid, title FROM {node} as n ";

-----------------------------------------------------------------------------

I hope someone can find a solution how to enable this module to other languages.

Blessings,
Burhan

sai571’s picture

I think this is caused because of theme('table') call. Please check your code.

If this is correct, please somebody check the core and correct it immediately.

sai571’s picture

Hi Everyone,

I think i may have found the solution,

By code was broken because i didn't add this line

'class' => 'dummy'

to

$row = array(
				      'data' => array(
				        array('data' => substr($data2->question_question,0,$str_length),'class' => 'dummy'),
				        array('data' => 'Fill In The Blank',array()),
				        array('data' => format_date(strtotime($data->created),'small'),array())
				      ),
				    );

when i had passed it to theme('table',$headers,$rows). Insted i added a dummy array()

amogiz’s picture

I have exactly the same problem but could not find any solution.
I noticed that the label for Title and Body part are "hidden" and that i have twice the error message.

warning: preg_match() expects parameter 2 to be string, array given in /home/httpd/vhosts/lavielemonde.com/httpdocs/includes/bootstrap.inc on line 771.

It would be really pleasant to get a solution :)

kalilo’s picture

I have the same problem

Can any one help?