ryanhowdy / fcms

Family Connections - Create a private family website.
http://www.familycms.com
GNU General Public License v2.0
83 stars 41 forks source link

Recipes - Uncaught exception 'InvalidArgumentException' with message 'Select_string only accepts integers: 4 #553

Closed ryanhowdy closed 5 years ago

ryanhowdy commented 6 years ago

Assigned to Problems, Issues and Bugs #15448. As reported in Tender:

I'm having an issue with the recipe book.... I am able to create new recipes, and they get entered into the database, and I can view them for up to 59 seconds after posting. After that, I'm getting a fatal error when trying to view the recipes. I've tried removing special characters, and still can't get it to work. I'm thinking it is either a PHP setting, or an error within the database, but can't seem to find it.

Installed on IIS 8.5, PHP 5.6.3, and MySQL. Any help is appreciated.

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Select_string only accepts integers: 4' in PATHTOSITE\inc\thirdparty\php-gettext\gettext.php:354 Stack trace: #0 PATHTOSITE\inc\thirdparty\php-gettext\gettext.php(388): gettext_reader->select_string(4) #1 PATHTOSITE\inc\thirdparty\php-gettext\gettext.inc(293): gettext_reader->ngettext('%s minute ago', '%s minutes ago', 4) #2 PATHTOSITE\inc\thirdparty\php-gettext\gettext.inc(411): _ngettext('%s minute ago', '%s minutes ago', 4) #3 PATHTOSITE\inc\datetime.php(321): T_ngettext('%s minute ago', '%s minutes ago', 4) #4 PATHTOSITE\inc\recipes_class.php(229): getHumanTimeSince(1509382351) #5 PATHTOSITE\recipes.php(854): Recipes->showRecipeInCategory(6, 1) #6 PATHTOSITE\recipes.php(1 in C:\inetpub\wwwroot\SterlingTechSystems\Family\inc\thirdparty\php-gettext\gettext.php on line 354