cchiacchierini
Member
I am getting the following error when loading a map inside a popup at ciderweekny.com/locations (click on any link to load the popup):
Here is line 274:
Here are the settings for the element being called:
Here is the default_group.php file being called by the popup:
The site was moved to a different server, but other than that, no changes made from when it was working.
J2.5.14
Fabrik 3.0.8
Any ideas?
Code:
Warning: file_get_contents(http://maps.google.com/maps/api/staticmap?center=41.74731,-74.08705099999997&zoom=14&size=375x325&maptype=roadmap&mobile=true&markers=41.74731,-74.08705099999997&sensor=false) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/cwnyttkkzz/ciderweekny.com/components/com_fabrik/helpers/image.php on line 274
Here is line 274:
PHP:
// No cached image, grab image from remote URI and store locally
file_put_contents($cacheFile, file_get_contents($src));
Here are the settings for the element being called:
Here is the default_group.php file being called by the popup:
PHP:
<?php
/*
* This is where you will do your main template modifications.
*
*/
?>
<?php
/*
* This code sets up your first group.
*/
reset($this->groups);
$this->group = current($this->groups);
$this->elements = $this->group->elements;
?>
<?php
/*
* Now we output the first group. First a standard frameset, with id and
* style info.
*/
?>
<fieldset class="fabrikGroup" id="group<?php echo $this->group->id;?>" style="<?php echo $this->group->css;?>">
<legend><?php /*echo $this->group->title;*/?></legend>
<?php if ($this->group->intro !== '') {?>
<div class="groupintro"><?php echo $this->group->intro ?></div>
<?php }?>
<?php
/*
* This is the meat of the customization, that allows you to place and
* format your elements on the page. In this example, we're pretty much
* just duplicating the standard 'default' template layout, but doing it
* by placing each individual element, one by one. You can get as creative
* as you want in your HTML formatting.
*
* The important thing is the two PHP lines for each element:
*
* $this->element = $this->elements['short_element_name'];
* echo $this->loadTemplate('element');
*
* ... which is what actually renders each individual element. Note
* that this is one of the few places in Fabrik where you use the short
* element name (like 'first_name') instead of the full element name
* (like 'jos__fb_contact_sample___first_name').
*/
?>
<table style="width:900px;">
<tr>
<td VALIGN=TOP width="70%">
<?php
$this->element = $this->elements['establishmentname'];
echo $this->loadTemplate('element');
?>
<?php
$this->element = $this->elements['establishmentaddressstreet'];
echo $this->loadTemplate('element');
?>
<?php
$this->element = $this->elements['estabconcatenatecitystatezip'];
echo $this->loadTemplate('element');
?>
<?php
$this->element = $this->elements['establishmentphone'];
echo $this->loadTemplate('element');
?>
<?php
$this->element = $this->elements['establishmentwebsitelink'];
echo $this->loadTemplate('element');
?>
<?php
$this->element = $this->elements['establishmenthours'];
echo $this->loadTemplate('element');
?>
<?php
$this->element = $this->elements['establishmentdescription'];
echo $this->loadTemplate('element');
?>
</td>
<td VALIGN=TOP>
<?php
$this->element = $this->elements['establishmentmap'];
echo $this->loadTemplate('element');
?>
<?php
$this->element = $this->elements['googlemaplink'];
echo $this->loadTemplate('element');
?>
</td>
</tr>
</table>
</fieldset>
<?php
/* This must be the last thing that happens in this template. It adds
* all hidden elements to the form, and also finds any non-hidden elements
* which haven't been displayed, and adds them as hidden elements (this
* prevents JavaScript errors where element handler code can't find the actual
* DOM structures for their elements)
*/
/*echo $this->loadTemplate('group_hidden');*/
?>
The site was moved to a different server, but other than that, no changes made from when it was working.
J2.5.14
Fabrik 3.0.8
Any ideas?