Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    just to narrow down the problem and help us debug the issue is it possible to try the following temporarily:

    – deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    – switching to the default theme to rule out any theme-specific problems

    Thread Starter DebbieInTX

    (@debbieintx)

    Regarding deactivating the plugins, I went through that process before reporting this problem. Events Manager was the plugin that triggered the issue … I can have all plugins active except it, and there is NO problem. I can have all plugins deactivated except it, and there IS a problem.

    I just tried switching my theme to WordPress’s Twenty-Fifteen, and the problem is still there. Like I said, I don’t know *how* Events Manager could be causing this issue, but it sure looks guilty.

    I think it is an *awesome* plugin and really, really, really hope someone can figure out a solution.

    Are you using any custom templates or custom coding with Events Manager?

    Thread Starter DebbieInTX

    (@debbieintx)

    We have changed some of the email templates through Event Manager > Settings, but have not modified the code at all. The changes to the templates are nothing fancy … just changing some of the text. We haven’t made any changes recently though … it’s probably been over a year since we made customizations.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I tried this and works on our test site; did you disable all other plugin except for EM instead of one by one deactivation?

    Thread Starter DebbieInTX

    (@debbieintx)

    First I turned them all off and then activated them one-by-one. The problem occurred when I activated EM. Then deactivated the ones except for EM that I had activated. Still had problem. Then I deactivated EM and activated all of the other plugins … no problem.

    Thread Starter DebbieInTX

    (@debbieintx)

    Is there a way that I can output all the custom EM settings I have made so that you can look and see if maybe something looks odd?

    Are you by any chance using the TimThumb legacy image thumbnail system that was originally used by Events Manager but is now discontinued?

    Thread Starter DebbieInTX

    (@debbieintx)

    Nope.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Thread Starter DebbieInTX

    (@debbieintx)

    Will do — thanks!

    Another thought I had … it seems that WordPress should not have any knowledge of the server-side home directory path, so I’ve been poking around the server to see if maybe a recent WordPress install got a variable set wrong (that for some reason only comes into play when EM is active). Just brainstorming.

    That does seem possible. Has you WordPress admin area ever been in a different location?

    Are there any unusual config lines in your wp-config.php?

    Which version of WordPress are you using?

    Thread Starter DebbieInTX

    (@debbieintx)

    Yay!! I diff’ed the wp-config-sample.php file against my wp-config.php and found this:

    define( 'UPLOADS', 'media' );

    I commented it out, and now the site seems to be a happy camper again. ??

    I know I changed the uploads directory on some of my sites, but I pretty much quit doing that after WP took it out of the admin settings. Maybe I had set it for this site sometime in the foggy past? I dunno why it would choose to haunt me only after WP 4.5(*) and only with EM activated.

    Thanks so much for your help and ideas!

    (*) I have WP 4.5.2 installed, but based on when the problem started, I think it started with 4.5.

    Thread Starter DebbieInTX

    (@debbieintx)

    Drat. I don’t see a way to mark this back to UNRESOLVED …

    So, I was a little worn out when I posted the last update and didn’t notice quite was was going on with the urls. What was/is really going on is this:

    The define( 'UPLOADS', 'media' ); command in wp-config.php works just like it is supposed to *unless* EM is active; that is, it sets the uploads directory to (in this case) /media. This is a really nice feature as it makes the site look more professional (/wp-content/uploads kind of screams “I’m a WordPress site!”).

    When EM is active, the UPLOADS setting gets changed such that the default setting is prepended to the custom setting. ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Upload new media file gets wrong url’ is closed to new replies.