Comments (4)
Do you have a bunch of recipes in this test? When i try this with just 1 recipe, i cannot reproduce.
from fcms.
Well that's curious. I created a clean install just to confirm it wasn't being caused by anything else.
As to the number of recipes: I see the problem on the first the first through last. If there are already recipes saved, the new one will be displayed for 90 seconds then vanish. If you can enter multiple recipes within 90 seconds everything that is less than 90 seconds old will be displayed.
I just had a thought and went into the database with MySQL Workbench and updated the 'date' column to a current date/time and the recipe title once again appeared. (Well until 90 seconds after the time I entered then it vanished again.)
The page I am looking at is Home -> Recipes or Home -> Recipes -> {Recipe Category}
I attached the FCMS log. Let me know if there is another that could shed some light on the problem.
===================================================================
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretch
PHP 7.0.33-0+deb9u10 (cli) (built: Oct 6 2020 17:08:28) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33-0+deb9u10, Copyright (c) 1999-2017, by Zend Technologies
mysql Ver 15.1 Distrib 10.1.48-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2
Server version: Apache/2.4.25 (Raspbian)
Server built: 2021-07-09T08:12:34
from fcms.
You say that you can't reproduce the problem. Are you testing with 3.7.0 or a compilation of fixed that will eventually be in 3.8.0? If it's the later then this is most likely a duplicate of #553 and nothing else is required. The main difference is that I do NOT see any errors in the log when this error occurs.
inc/datetime.php @ 314
$mins = round($diff / MINUTE_IN_SECONDS);
which is used @ line 321
$since = sprintf(T_ngettext('%s minute ago', '%s minutes ago', $mins), $mins);
Eventually the execution flow gets to inc/thirdparty/php-gettext/gettext.php @ 379
ngettext($single, $plural, $number){
Now if "$this->short_circuit" is true everything just works. However if "$this->short_circuit" is NOT true the code will work it's way to inc/thirdparty/php-gettext/gettext.php @ 352
select_string($n){
This function starts with starts with:
if (!is_int($n)) {
throw new InvalidArgumentException(
"Select_string only accepts integers: " . $n);
The problem is that round( ) returns a float which is incompatible with select_string() as it requires $n to be an int.
It's beyond my ability to determine when and why 'short_circuit' is set true. I can only say that in my installation it is false when displaying recipes.
from fcms.
Sorry, I did test this on 3.8.0, so hopefully it is a duplicate.
from fcms.
Related Issues (20)
- Photos: Check if full size photo exists before showing/linking to it HOT 1
- Photos: Cannot view photos from deleted category HOT 3
- Duplicate 'categories' HOT 1
- Cropped images HOT 8
- Calendar: Better anniversaries HOT 1
- ERROR --> Invalid user id. - 0 HOT 1
- document upload fails on docx
- ERROR CODE
- PHP Error Function get_magic_quotes_gpc() is deprecated HOT 2
- Move auth logic to Laravel
- Move templates to Laravel Blade
- Misc: Update tests to use Laravel testing
- Misc: Docker image for fcms HOT 6
- Missing home page messages HOT 3
- Calendar: Allow calendar entry without specific date HOT 1
- Photos: Do not crop regular or full size photos
- Update rss
- Filename conflict on Windows
- create siblings fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcms.