• Hey,

    I’ve defined variables in the wp-config file but the ‘upload_url_path’ field in the database doesn’t update.

    This causes the image to fail to load as they’re looking at the local path.

    I’ve created a workaround by adding update_option into a separate php file but this isn’t ideal as I don’t want us to miss any important updates in the plugin.

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter charlessellers

    (@charlessellers)

    if anyone else gets stuck with this i added the additional code to the functions.php file.

    // DO Spaces - define paths in DB
    update_option('upload_url_path', UPLOAD_URL_PATH);
    update_option('upload_path', UPLOAD_PATH);

    A properly supported solution would be great!

Viewing 1 replies (of 1 total)
  • The topic ‘Defined Variables don’e work’ is closed to new replies.