PDA

View Full Version : OnArcade script error: href URL is not properly formatted



Fli
12-01-2013, 02:57 PM
I i had little issue with my onarcade site

in place where game comments should appear (game page) was a text "href URL is not properly formatted".

OnArcade script support helped me to solve this.
He wanted to see this file: templates/mytemplatename/file.php
Then the cause was Facebook comments. I needed to replace this:

<div class="fb-comments" data-href="{$_SERVER['REQUEST_URI']}" data-num-posts="5" data-width="359"></div>



by this:


<div class="fb-comments" data-href="{$file['url']}" data-num-posts="5" data-width="359"></div>


Also i had some issue with permissions, because it dont wanted to save the file into cache, so i had to change file.php permissions to 777 and also cache_template folder and its files to 777
and it was solved.