Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Im sorry for any misunderstanding, but i am just a developer, i am not affiliated with upstream in any way, you would need to contact their support, not in this forum for those questions. I hope you will find a solution

    I can’t help you any further. You would need to download your own plugin and extensions from https://upstreamplugin.com/
    Please read: you need to download all extensions from https://upstreamplugin.com/
    Also keep in mind that the license for UpStream is only valid for updates for 1 year, so you would need to buy a new license if your license is older than 1 year.

    Hi Andrea,

    This bugfix should make you able to update all upstream extensions you can download from https://upstreamplugin.com/

    I hope you can get this to work with this information ??

    Hi Andrea,

    Do you know how to change the code inside the PHP files?

    I suggest to use FTP software like FileZilla and a text editor like Notepad++ as basic tools.

    Your hosting provider can provide you of FTP login credentials and settings for FileZilla.

    Once logged into the FTP of your webserver, you can use the file explorer (on the right) to navigate to the directory: /wp-content/plugins/upstream-custom-fields/

    In there is a file called: upstream-custom-fields.php

    You can download this file to your desktop and edit it with Notepad++.
    Once opened the file scroll to line number 104.

    Select the codeblock:

    if (file_exists(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Manager.php')) {
    
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Post_Object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Meta_Object.php');
    
                foreach (scandir(WP_PLUGIN_DIR . '/upstream/includes/model/') as $filename) {
                    $path = WP_PLUGIN_DIR . '/upstream/includes/model/' . $filename;
                    if (is_file($path)) {
                        require_once($path);
                    }
                }
    }

    And replace it with:

    if (file_exists(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Manager.php')) {
    
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Post_Object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Meta_Object.php');
    
                foreach (scandir(WP_PLUGIN_DIR . '/upstream/includes/model/') as $filename) {
                    $path = WP_PLUGIN_DIR . '/upstream/includes/model/' . $filename;
                    if (is_file($path)) {
                        require_once($path);
                    }
                }
    } elseif (file_exists(WP_PLUGIN_DIR . '/upstream/includes/model/class-upstream-model-manager.php')) {
    
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/class-upstream-model-object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/class-upstream-model-post-object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/class-upstream-model-meta-object.php');
    
                foreach (scandir(WP_PLUGIN_DIR . '/upstream/includes/model/') as $filename) {
                    $path = WP_PLUGIN_DIR . '/upstream/includes/model/' . $filename;
                    if (is_file($path)) {
                        require_once($path);
                    }
                }
    }

    Please be sure to have a backup of the original file, before you upload the edited file

    Hi Andrea,

    I ran into the same issue today with a client of ours.
    After some debugging I found the issue and created a solution.

    Inside the script
    /wp-content/plugins/upstream-custom-fields/upstream-custom-fields.php@104
    is a if statement. I changed the code into below code, and now its working and should be future proof as well ??

    if (file_exists(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Manager.php')) {
    
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Post_Object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/UpStream_Model_Meta_Object.php');
    
                foreach (scandir(WP_PLUGIN_DIR . '/upstream/includes/model/') as $filename) {
                    $path = WP_PLUGIN_DIR . '/upstream/includes/model/' . $filename;
                    if (is_file($path)) {
                        require_once($path);
                    }
                }
    } elseif (file_exists(WP_PLUGIN_DIR . '/upstream/includes/model/class-upstream-model-manager.php')) {
    
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/class-upstream-model-object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/class-upstream-model-post-object.php');
                require_once(WP_PLUGIN_DIR . '/upstream/includes/model/class-upstream-model-meta-object.php');
    
                foreach (scandir(WP_PLUGIN_DIR . '/upstream/includes/model/') as $filename) {
                    $path = WP_PLUGIN_DIR . '/upstream/includes/model/' . $filename;
                    if (is_file($path)) {
                        require_once($path);
                    }
                }
    }
Viewing 5 replies - 1 through 5 (of 5 total)