Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter sierrawebmaster

    (@sierrabmwcca)

    I found the Featured Image! Sorry about that…

    Thread Starter sierrawebmaster

    (@sierrabmwcca)

    But the other problem remains…

    Thread Starter sierrawebmaster

    (@sierrabmwcca)

    More information… Using Pinboard theme, if I select “Single” instead of “Multiple” in the Category drop box, the correct categories show up as a drop down. I have deactivated/reactivated, also deleted the plugin and reinstalled it. The problem continues.

    Plugin Author finnj

    (@finnj)

    Sorry for late reply

    Do any of your categories contain special charters like curly or square brackets or quotation marks

    And does the errorcode refer to a line number (maybe in the error log) ?

    Plugin Author finnj

    (@finnj)

    Sorry for late reply

    Do any of your categories contain special charters like curly or square brackets or quotation marks

    And does the errorcode refer to a line number (maybe in the error log) ?

    Thread Starter sierrawebmaster

    (@sierrabmwcca)

    I have one category name @events as I want it on top of the list…
    here is the full error:

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/sierrab1/public_html/wp-content/plugins/frontier-post/forms/frontier_form.php on line 276
    >@Events

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/sierrab1/public_html/wp-content/plugins/frontier-post/forms/frontier_form.php on line 276
    >Club News

    and it repeats for all of the categories.
    Is there anything I can do, any workaround, I really don’t want to change the name of that category? As I mentioned if I have it as Single in a dropdown it works perfectly.

    Also the form input boxes don’t seem to line up correctly, it’s as thought that second column in the table has been center aligned, I was looking for the css but unable to find it. Don’t know if you can access it https://sierrabmwcarclub.org/your-profile/ Here is a screen shot https://sierrabmwcarclub.org/wp-content/uploads/YourProfilePage.png just in case
    Thanks for all your help!

    Plugin Author finnj

    (@finnj)

    Most likely it is the @events that causes the issues, will have a look at it during the weekend, believe it can be solved by using htmlspecialchar function, but I cant test and try to reproduce it until tomorrow.

    The screenshot is from the user profile, sholdnt it have been from the frontier form ? ??

    Thread Starter sierrawebmaster

    (@sierrabmwcca)

    Thanks for you help!
    Oops, the user profile is from another plugin! Sorry! Got my plugins confused ??

    Plugin Author finnj

    (@finnj)

    Hi,

    I have not been able to recreate your issue, I need to check something and need more description to be able to pinpoint the cause. I dont know how much you know about html/php – I will try an explain, where the problems occur, that might help us to find the root cause.

    I believe it is this line that fails:
    <option value="<?php echo $category1['cat_ID']; ?>" <?php if ( $cats_selected && in_array( $category1['cat_ID'], $cats_selected ) ) { echo 'selected="selected"'; }?>><?php echo $category1['cat_name']; ?></option>
    and this function in_array( $category1['cat_ID'], $cats_selected )
    It is the cats_selected that is not an array, meaning there hasnt been selected any category (or the format of one of the categories messes up the array)

    So to my question: When does this happen ? Is it when you try to create a new post or when you edit an existing ?

    Have you set a default category in frontier post settings for all profiles ?

    The cats_selected should never be empty…

    Can you try and change the name of you category

    Member′s cars

    to Members Cars ?

    As for your question on formatting, can you link to a screenshot, and maybe also a screenshot form when you get the error

    Thread Starter sierrawebmaster

    (@sierrabmwcca)

    So to my question: When does this happen ? Is it when you try to create a new post or when you edit an existing ? both

    Have you set a default category in frontier post settings for all profiles ? Yes, From our Members

    Can you try and change the name of you category changed to Members Cars still get same problem. Still have @events
    On my mobile will provide the rest later

    Thanks again.

    Thread Starter sierrawebmaster

    (@sierrabmwcca)

    I also changed the @events category to All Events and same issue.

    Plugin Author finnj

    (@finnj)

    Hi,

    I am out of options, sorry…..

    I am working on a version 2.0 where there it will be possible to create own templates for the Frontier forms – some of the code has been re-written, so it might help

    Until then there is not much to do

    Thread Starter sierrawebmaster

    (@sierrabmwcca)

    I have set it to Single, that should be fine for front end users. I can always update on the back end. Thanks for taking the time and looking ?? and hopefully the new version will do the trick! I’ll give it a shot when you release. Keep me posted…

    Plugin Author finnj

    (@finnj)

    Version 2 is released, you can now use template forms

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Category’ is closed to new replies.