Ask a question solve the issue.
This is still a problem for PHP
> ## ${helper.open_graph_metadata(post)}
> ## ${helper.twitter_card_information(post)}
But the other issue I think I have sorted (my fault)
On 11/03/2016 16:26, Dave wrote:
>
>
> I have a page:
>
> my_page.php
>
> I have compilers: PHP and allowed .php as an extension for the page. The
> page is being built so all good there.
>
> But my page is built incorrectly. Firstly the page ends with:
>
> |
> <meta property="og:description" content="
> |
>
> This was "fixed" by removing from the template:
> |
> ## ${helper.open_graph_metadata(post)}
> ## ${helper.twitter_card_information(post)}
>
> |
>
>
> But still, the page builds incorrectly only using about 3/4 of the theme.
>
>
> The php is simple enough
> |
> <?php
>
>
> if(!isset($_POST))return;
>
> $email =$_POST['email'];
> $name='';
> $list='<id here>';
>
> $url ="
https://domain.com";
>
> if($email==''||$list=='')
> {
> returnfalse;
> }
>
> $postdata =http_build_query(
> array(
> 'name'=>$name,
> 'email'=>$email,
> 'list'=>$list,
> 'boolean'=>'true'
> )
> );
> $opts =array('http'=>array('method'=>'POST','header'=>'Content-type:
> application/x-www-form-urlencoded','content'=>$postdata));
> $context =stream_context_create($opts);
> $result =file_get_contents($url.'/subscribe',false,$context);
>
> ?>
>
> |
>
> just handling a form. If I test with
>
>
> |
> <?php
> echo "hello world";
> ?>
> |
>
> then it works, so something above is breaking something
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "nikola-discuss" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/nikola-discuss/GPRiYg6NJEM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
nikola-discus...@googlegroups.com
> <mailto:
nikola-discus...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.