Jump to content


Photo
Hooker

Error in Hooker



  • Please log in to reply
5 replies to this topic

#1 alecnoriegagmailcom

alecnoriegagmailcom

    Newbie

  • Members
  • Pip
  • 2 posts
  • Framework Version:PageLines Framework 2.4.3
  • Country: Country Flag

Posted 31 July 2013 - 01:10 PM

Hello I have this error in hooker

 

Warning: array_merge(): Argument #2 is not an array in /www/alternativa3.org/htdocs/wp-content/plugins/hooker/hooker.php on line 340
Warning: Invalid argument supplied for foreach() in /www/alternativa3.org/htdocs/wp-content/plugins/hooker/hooker.php on line 340

 

Any idea what i am doing wrong (the 3 hooks i have are HTML)

 

Thanks!



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 15848 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 31 July 2013 - 01:18 PM

Hi, Can you provide the code you're using and also what hooks you're using too please.

#3 alecnoriegagmailcom

alecnoriegagmailcom

    Newbie

  • Members
  • Pip
  • 2 posts
  • Framework Version:PageLines Framework 2.4.3
  • Country: Country Flag

Posted 31 July 2013 - 01:28 PM

Hello Danny, Thanks for the fast response!!

 

Here are the hooks / code

 

Hook #1
pagelines_inside_bottom_morefoot

Code:
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th width="624" scope="col"><div align="left">
      <p class="parrafo_footer">FUNDACION ALTERNATIVA 3 ESTRATEGIAS DE DESARROLLO COMUNITARIO<br />
        25 de mayo 985 - B1613FNG - Los Polvorines - ARGENTINA<br />
        Tel.: +54 (11) 4660-4304 / Tel. - Fax: +54 (11) 4663-6237<br />
        Inscripción en IGJ N° 1724312/36501/2003</p>
    </div></th>
    <th width="276" align="right" scope="col"><a href="http://www.alternati...ion_donante.pdf" class="parrafo_footer">LEY DE PROTECCIÓN AL DONANTE</a></th>
  </tr>
  <tr>
    <th colspan="2" bgcolor="#EEEEEF" scope="col"><a href="http://www.alternati...ion_donante.pdf" class="parrafo_footer"></a></th>
  </tr>
</table>

Hook #2
wp_footer

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<style type="text/css">
body {
    background-color: #C9C9C9;
}
</style>
</head>

<body>
</body>
</html>

Hook #3
pagelines_after_features

Code:
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th align="center" scope="col"><img src="http://www.alternati...nners/barra.jpg" alt="Acceso Rápido" width="1000" height="65" usemap="#Map" longdesc="Acceso Rápido" border="0" /></th>
  </tr>
</table>

<map name="Map">
  <area shape="rect" coords="61,1,269,52" href="http://alternativa3....de-intervencion‎" target="_self" alt="Modelo de Intervecion">
  <area shape="rect" coords="279,1,488,50" href="http://alternativa3.org/donde-estamos/" target="_self" alt="Dónde Estamos">
  <area shape="rect" coords="498,-8,708,50" href="http://alternativa3....nes-trabajamos/" target="_self" alt="Para Quienes Trabajamos">
  <area shape="rect" coords="716,3,925,48" href="http://alternativa3....nal-multimedia/" target="_self" alt="Canal Multimedia">
</map>
 

 

THANKS!!



#4 gingerdezine

gingerdezine

    Newbie

  • Members
  • 4 posts
  • Country: Country Flag

Posted 02 August 2013 - 02:23 PM

I am getting the same errors in Hooker as well.

 

Hooker was working great for me before the hack/server switch/DMS launch. Now I get the error and I cannot access, add, edit or change my Hooks. I have a feeling it may be connected to the Store and account login within the website issues which is not working yet?



#5 gingerdezine

gingerdezine

    Newbie

  • Members
  • 4 posts
  • Country: Country Flag

Posted 06 August 2013 - 03:33 PM

Any ideas with this? I get this message within Hooker.

 

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home2/cmplive/public_html/wp-content/plugins/hooker/hooker.php on line 340

Warning: Invalid argument supplied for foreach() in /home2/cmplive/public_html/wp-content/plugins/hooker/hooker.php on line 340

 

I can choose a Hook from the dropdown, but it does not open an editing window to add code into.

Plug in is activated and I am logged into my Pagelines account. It worked great before, but now I get the message.



#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 09 August 2013 - 01:59 AM

First, you should never, ever add anything with <head> or <body> tags into a hook. That's creating a new page, so bad code will break things, including hooker.  It seems you're not adding a hook as much as trying incorrectly to embed a full page within a page.  That's not what Hooker does. For that you need an iframe.

 

To add a table within a hook is fine, but not with the layout of an entire HTML page.







Also tagged with one or more of these keywords: Hooker