Forum Replies Created

Viewing 15 replies - 31 through 45 (of 50 total)
  • Thread Starter Robert

    (@rsterry48)

    Had a look but as a non-profit organisation, that’s rather out of our budget.

    Thread Starter Robert

    (@rsterry48)

    Thank you for your suggestion. Appreciated.

    Thread Starter Robert

    (@rsterry48)

    Thanks John for getting back. Your advice is appreciated.

    Thread Starter Robert

    (@rsterry48)

    I’ve taken your advice John and looked at other plugins that might be causing this Redirection problem. The links are in a restricted folder controlled by a plugin called Prevent Direct Access. So the first redirection that works is from a link outside the restricted folder to a link inside. But in the case of the second redirection that doesn’t work, both links are in the same restricted folder. The PDA plugin requires some additional code in the .htaccess file as follows. Could this be causing the problem?
    # Prevent Direct Access Rewrite Rules
    RewriteRule ^private/([a-zA-Z0-9-_.]+)$ index.php?pda_v3_pf=$1&pdav3_rexypo=ymerexy [L]
    RewriteRule ^wp/wp-content/uploads(/_pda/.*\.\w+)$ index.php?pda_v3_pf=$1 [QSA,L]
    # Prevent Direct Access Rewrite Rules End

    # IP Block Rewrite Rules for Folder Protection
    RewriteRule ^wp/wp-content/uploads(/(wpcommittee|wpmembers|wpindexes|wpsemsub|wpprodman|wpsales|wpregistrar|wpvote|wpwebteam|wpmat)/.*\.\w+)$ index.php?pda_v3_pf=$1 [QSA,L,B]
    # IP Block Rewrite Rules for Folder Protection End`

    Thread Starter Robert

    (@rsterry48)

    Thanks for your reply John. I have cleared my own browser but doesn’t make any difference. But perhaps there’s a WordPress cache that also needs clearing? Perhaps also a web hosting cache? I’ve also checked the .htaccess but nothing there that I can see that would cause this problem.

    And I’m puzzled why this one works fine:
    /Register.pdf
    to
    /wp/wp-content/uploads/wpmembers/guild_documents/Register.pdf

    but this one redirects back to the source page:
    /wp/wp-content/uploads/wpmembers/Register.pdf
    to
    /wp/wp-content/uploads/wpmembers/guild_documents/Register.pdf

    Thread Starter Robert

    (@rsterry48)

    Thank you for getting back. And yes – that’s the right plugin. And many thanks for your advice. Very much appreciated.

    Thread Starter Robert

    (@rsterry48)

    I know. And your WordPress File Upload Update may have nothing to do with the error. It’s just that the error in the Wiki plugin happened immediately after updating WordPress File Update. And yes, both plugin work ok. It’s only a Notice and may not be important. But I posted the error just on the off chance the two may be connected and someone might have received a similar error.

    Thanks for checking. However, on further investigation it appears the problem is not with the Members plugin but updating User Profiles. The problem looks like it’s coming from the Members plugin if you add new member roles via the User Profile. But in fact if you simply save the User Profile without changing anything, the error recurs. So not your problem I think.

    All the best
    Robert

    I have the same problem. But I only get this error if I add a new role to users by editing their profile. If instead I search for the user in Users in the Dashboard and then select the box besides the user and add or remove the role from there – without editing the profile – I get no php error – actually it’s a warning and doesn’t appear to have any effect on the operation of member roles.
    Warning: Illegal offset type in isset or empty in /wp-includes/plugin.php on line 174

    However, it should be fixed. I am using latest version of Members plugin by the way – v3.2.1

    Thanks
    Robert

    Thread Starter Robert

    (@rsterry48)

    On the Dashboard in the PHP Error Log. However, the Error Log has now been cleared so error no longer available. I’ll keep a look out if it recurs again. Thanks for getting back.
    Robert

    Thread Starter Robert

    (@rsterry48)

    Unfortunately I can’t tell what page or plugin is triggering the error message.

    Thread Starter Robert

    (@rsterry48)

    Certainly. Thank you for looking into this.

    Mar 12, 07:39:42
    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 1411
    
     
    Mar 12, 07:39:50
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:39:51
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:39:51
    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 1411
    
     
    Mar 12, 07:40:00
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:40:01
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:40:02
    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 1411
    
     
    Mar 12, 07:40:14
    
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:40:15
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
    Mar 12, 07:40:15
    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 1411
    Thread Starter Robert

    (@rsterry48)

    Many thanks for the clarification. And yes please, mark as resolved.

    Thread Starter Robert

    (@rsterry48)

    Thank you again for all your help. Very much appreciated. Especially as neither the course teacher nor the course distributor, in this case Udemy, answered my requests for assistance.

    Thread Starter Robert

    (@rsterry48)

    I think I’ve finally figured it out. The code is fine but the instructions in the course aren’t clear. I understood that once the code was in place in functions.php, then I wouldn’t need to also create the ‘Main Menu’ menu.

    So when I went to Appearance-Menus-Manage Locations, there was no Main Menu to select. I assumed it was the code. But once I created the menu, it worked fine.

    I’ve continued on to the next course topic and things seem to be working as expected.

    Thank you very much for your assistance. Your additional info about calling from “after_setup_theme” was most helpful.

Viewing 15 replies - 31 through 45 (of 50 total)