The line the warning refers to is:Warning: A non-numeric value encountered in localhost/modules/CG_RSS_Reader/lib/class.SimplePie.php on line 15197
Code: Select all
// Convert the number of seconds to an integer, taking decimals into account
$second = round($match[6] + $match[7] / pow(10, strlen($match[7])));
Code: Select all
<div class="section-cols lazy">
<div class="row">
{cgsi_convert}
{$xml = simplexml_load_file('https://www.youtube.com/feeds/videos.xml?user=gjdgraaf')}
{assign var='datasrc' value=0}
{assign var='parallax' value=0}
{assign var='parallax_thumb' value=''}
{foreach from=$feeds item=onefeed}
{$enclosure = $onefeed->get_enclosure()}
<div class="col-6">
<div class="card card-background lazy" data-bg="url({$youtube_thumb})">
<div class="card-body">
<div class="card-title text-left">
<h5>{$onefeed->get_title()}</h5>
</div>
<div class="card-footer text-left">
<div class="stats">
<span>
<i class="now-ui-icons media-2_sound-wave"></i>
</span>
<span>
{svg use="calendar"} <span class="text-muted">{$onefeed->get_date()|date_format:"%d/%m/%Y %H:%M"}</span>
</span>
</div>
<div class="stats-link pull-right">
<a href="{$onefeed->get_permalink()}" class="badge badge-primary">Bekijk video</a>
</div>
</div>
</div>
</div>
</div>
{/foreach}
{/cgsi_convert}
</div>
</div>
System info:
Any thoughts on what is the root cause?
----------------------------------------------
Cms Version: 2.2.9.1
Installed Modules:
AceEditor2: 1.05
AdminSearch: 1.0.4
CGBetterForms: 1.9
CGBlog: 1.15.8
CGContentUtils: 2.2.3
CGExtensions: 1.61.4
CGFeedback: 2.2.1
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.5
CG_RSS_Reader: 1.0.4
CMSContentManager: 1.1.7
Captcha: 1.0
CmsJobManager: 0.1.3
DesignManager: 1.1.5
FileManager: 1.6.8
FilePicker: 1.0.3
Gallery: 2.3.2
Gbook: 2.2.6
HitCounter: 2.1.2
JQueryTools: 1.4.0.4
MenuManager: 1.50.3
MicroTiny: 2.2.4
ModuleManager: 2.1.5
Navigator: 1.0.9
News: 2.51.4
Search: 1.51.6
SitemapMgr: 1.5.4
UpUtils: 0.1.0
Config Information:
php_memory_limit: 128000000
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Amsterdam
permissive_smarty: true
Php Information:
phpversion: 7.1.19
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 0
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128000000
max_execution_time: 30
register_globals: Off (False)
output_buffering: 0
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /var/tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On
Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache/2.4.34 (Unix) PHP/7.1.19
Server Api: apache2handler
Server Os: Darwin 18.0.0 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 8.0.11
Server Db Grants: Could not find a suitable "GRANT ALL" permission, this does not necessarily lead to problems... But if you have problems installing/removing modules or adding and deleting items/pages this could be the cause!
Permission Information:
tmp: localhost/tmp (0755)
tmp_cache: localhost/tmp/cache (0755)
templates_c: localhost/tmp/templates_c (0755)
modules: localhost/modules (0755)
uploads: localhost/uploads (0755)
File Creation Mask (umask): localhost/tmp/cache (0755)
config_file: 0444
----------------------------------------------