Posts by blythdev2k

    Sorry for the late reply, I was away from the office yesterday.


    I enabled debugging and it was bringing up that the tables were not found.


    I found the sql file and inserted that manually and it worked.


    The Google API key also needs added to the main index file on the front-end, as it was in the code as https://maps.googleapis.com/ma…ck=initMap&key=XXXXXXXXXX and didn't pull the api key from the main settings.


    Thank you very much for your time and information, it was a great help.

    The tables haven't been created.


    The front end gives the below error message when searching for an address.


    Warning: array_map(): Expected parameter 2 to be an array, bool given in addons/apps/root_locator/lib/RootLocator_Addresses.class.php on line 400


    Warning: count(): Parameter must be an array or an object that implements Countable in addons/apps/root_locator/lib/RootLocator_Addresses.class.php on line 402


    I'm using Perch3, but the code in the files is showing the below.


    $sql .= '

    loc.locationTitle,

    loc.locationBuilding,

    loc.locationStreet,

    loc.locationTown,

    loc.locationRegion,

    loc.locationCountry,

    loc.locationPostcode,

    loc.locationDynamicFields,

    mkr.markerLatitude,

    mkr.markerLongitude,

    err.errorMessage

    FROM perch2_jw_locator_locations loc

    LEFT JOIN perch2_jw_locator_markers mkr ON loc.markerID = mkr.markerID

    LEFT JOIN perch2_jw_locator_failed_jobs err ON loc.locationID = err.locationID

    ';


    If I make the database tables, might that work? Starting to get complicated for me. Would I also need to add every row?


    If so, is there a way to find out what db structure needs to be manually entered?


    Thanks for your time.

    Hi,


    Has anyone developed any location search for Perch that anyone knows about?


    I'm looking to setup a store locator type of structure.


    I have a number of locations setup in perch and would like to link it up to Google Places / Maps so someone can enter a place name or postcode and it returns the nearest listing.


    Thanks in advance.

    Afternoon,


    I'm looking for a bit of help regarding the below if possible?


    I have a simple region setup called Centre Info.


    Inside the region I have a number of ID's such as name, address, postcode, email etc.


    I have all of this information displayed on the left of the page in a div using <?php perch_content('Centre Info'); ?> which is fine.


    However, elsewhere on the page I want to display only the postcode.


    I have tried <?php perch_content_custom('Centre Info', [postcode]); ?> but this is bringing up the below error.


    Warning: Use of undefined constant postcode - assumed 'postcode' (this will throw an Error in a future version of PHP) in ...


    Is there something else I need to do here?


    Thanks in advance.

    Hi,


    I've set my navigation menu so the main menu at the top, then on internal pages I have the section menus on the left.


    The menu has 3 levels Main > Sub Menu > Sub Sub Menu.


    The top menu has all 3 levels Main > Sub Menu > Sub Sub Menu.

    The sidebar menus have 2 levels - Sub Menu > Sub Sub Menu.


    sub-menu.jpg


    What I have setup is.


    Chirstmas Lights > Christmas Lighting Feature Competion (Subpage)


    and


    Floral Presentations > Garden Competition (Subpage)


    They both show up fine on the sidebar menu, but the top menu will only display the bottom subpage, the one above does not show.


    Even if I reorder Floral Presentations and Chirstmas Lights, Garden Competition disappears from the top and only the bottom one Christmas Lighting Feature Competion shows.


    perch2.jpg


    Has anyone seen annything similar or can point me in the right direction to locate the problem.


    EDIT: They missing ones at the top don't appear to be hidden, there is no reference to them in the source code of the page.


    Thanks.

    I have this working now, thanks for the link.


    Code
    1. <a <perch:if exists="subitems"> class=" dropdown-toggle nav-link" </perch:if> id="navbarDropdown " role="button" data-toggle="dropdown" aria-haspopup="true" class="nav-link" aria-expanded="false" href="<perch:pages id="pagePath">"><perch:pages id="pageNavText"> </a>

    Hi,


    I wonder if someone could help.


    I have setup perch menus linked to bootstrap styles and i've setup the CSS to make a new colour for each button using childs.


    The one style I can't seem to get to work is for the 'dropdown-toggle' style to only be active on menus with dropdowns, my template either adds them for all (like below, only About Us has any dropdown items, the other 3 don't, but the toggle icon is still there.) or I have to remove it, which means the user doens't know it is a dropdown unless they click / hover over it.



    bootstrap-menu.jpg


    My item.html code is as below.


    Code
    1. </perch:before>
    2. <li class="nav-item dropdown" <perch:if exists="current_page"> </perch:if>
    3. <perch:if exists="ancestor_page"> class="ancestor"</perch:if>>
    4. <a class="nav-link dropdown-toggle " id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="<perch:pages id="pagePath">"><perch:pages id="pageNavText"></a>
    5. <perch:pages id="subitems" encode="false">
    6. </li>
    7. <perch:after>


    If anyone has done this previously, any advice would be appreciated.


    Thanks.

    Hi,


    I've just upgraded a website from Perch 2 to 3.


    The site did use Tinymce but I understand this will not work now.


    I have tried the others and none of them let the user update tables that I can see.


    Does anyone have a solution?


    Thanks.

    Hi,


    We need to upgrade the PHP version of our website from 5.6.40 to 7.2.25, however when we do this we cannot login to Perch and are presented with the following error message on the login page


    Sorry, your license key isn't valid for this domain.


    Does anyone know how to resolve this?


    Kind Regards.