Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Problem with simplexml_load_file

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
StratoKyke
Smarty Rookie


Joined: 30 Apr 2015
Posts: 9

PostPosted: Mon Sep 07, 2015 2:53 pm    Post subject: Problem with simplexml_load_file Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Mon Sep 07, 2015 4:27 pm    Post subject: Reply with quote

This is not a Smarty problem.

See for example http://stackoverflow.com/questions/6400300/https-and-ssl3-get-server-certificatecertificate-verify-failed-ca-is-ok

or google the error message.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP