|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
StratoKyke Smarty Rookie
Joined: 30 Apr 2015 Posts: 9
|
Posted: Mon Sep 07, 2015 2:53 pm Post subject: Problem with simplexml_load_file |
|
|
The error is:
Code: | simplexml_load_file(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed |
There are other errors but those I say that simply can not open the file.
Before to the passage of the site to https everything worked perfectly.
this is the code:
Code: |
{$xml = simplexml_load_file({info('feed_rss', 'site')})}
{if !empty($xml)}
{$cnt = 15}
{foreach $xml->channel->item as $item}
<div class="news">
<header class="boxHeadline">
<div class="messageHeadline">
<h1><a href="{$item->link}">{$item->title}</a></h1>
<p>{varL('arcor_wall_news_date')}{$item->pubDate|date_format:"%e %B %Y"}</p>
</div>
</header>
<div class="messageBody">
<div class="newsTeaser">
<p>{$item->description}...<a href="{$item->guid}">{varL('arcor_wall_read_other')}</a></p>
</div>
</div>
{$cnt = $cnt + 1}
{if $cnt == 2}{break}{/if}
</div>
{/foreach}
{else}
<p>{varL('arcor_wall_no_news')}</p>
{/if} |
Thanks for the reply. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
|
Back to top |
|
|
|
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 vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|