Support

Account

Home Forums Add-ons Gallery Field bug install & run

Solved

bug install & run

    • tapichus

    • September 27, 2013 at 5:44 am

    Hi! I´m sory but my english is bad.

    1. When edit the “functions.php” file and copy this:

    include_once(‘acf-gallery/acf-gallery.php’);

    I can´t save this because print this error:

    Fatal error: Cannot redeclare acfgp_register_fields() (previously declared in /nfs/c07/h03/mnt/108529/domains/prueba.011labs.com/html/wp-content/plugins/acf-gallery/acf-gallery.php:18) in /nfs/c07/h03/mnt/108529/domains/prueba.011labs.com/html/wp-content/themes/wac/acf-gallery/acf-gallery.php on line 19

    2. When i create the gallery in the custom field, print this:

    Warning: Cannot modify header information – headers already sent by (output started at /nfs/c07/h03/mnt/108529/domains/prueba.011labs.com/html/wp-content/themes/wac/functions.php:492) in /nfs/c07/h03/mnt/108529/domains/prueba.011labs.com/html/wp-includes/pluggable.php on line 875

    3. I create 2 gallerys, but i see this errors:

    http://prueba.011labs.com/recetas/risotto-a-la-gavelini

    http://prueba.011labs.com/lugares/nuevos-sabores

    I don´t understand!
    Thanks!
    Tapichus

    • Elliot

    • September 30, 2013 at 2:42 pm

    Hi @tapichus

    It sounds like you have a theme that is including the gallery field add-on, and also a plugin which is including the gallery field add-on.

    You can only have 1 instance of the add-on running at one time.

    Find and fix this issue to solve your problem.

    Thanks
    E

  • Hi! I go again.

    1.
    I have installed only wordpress and the plugins acf + image gallery add on.
    http://wac.ceroonce.com/?page_id=6

    I copied the code in de page.php but i don´t show the gallery.

    This is de example:
    http://wac.ceroonce.com/?page_id=6

    2.
    When edit the “functions.php” file and copy this:

    include_once(‘acf-gallery/acf-gallery.php’);

    I can´t save this because print this error:

    Fatal error: Cannot redeclare acfgp_register_fields() (previously declared in /nfs/c07/h03/mnt/108529/domains/prueba.011labs.com/html/wp-content/plugins/acf-gallery/acf-gallery.php:18) in /nfs/c07/h03/mnt/108529/domains/prueba.011labs.com/html/wp-content/themes/wac/acf-gallery/acf-gallery.php on line 19

    Thanks
    Gerardo

    • Elliot

    • October 17, 2013 at 4:44 pm

    Hi @tapichus
    I believe the issues is this:

    include_once(‘acf-gallery/acf-gallery.php’);

    Why are you copying this code into your functions.php file? Do you understand that this is not a requirement for a standard WP install?

    As for your comment:
    “I copied the code in de page.php but i don´t show the gallery.”

    I don’t understand what code you are using.

    Please read the documentation. ACF is a very easy to use plugin with loads of code examples, please read them

    Thanks
    E

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.