Title: key4it's Replies | WordPress.org

---

# key4it

  [  ](https://wordpress.org/support/users/key4it/)

 *   [Profile](https://wordpress.org/support/users/key4it/)
 *   [Topics Started](https://wordpress.org/support/users/key4it/topics/)
 *   [Replies Created](https://wordpress.org/support/users/key4it/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/key4it/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/key4it/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/key4it/engagements/)
 *   [Favorites](https://wordpress.org/support/users/key4it/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpStream: a Project Management Plugin for WordPress] error upstream plugin – custom fields section](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/)
 *  [key4it](https://wordpress.org/support/users/key4it/)
 * (@key4it)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15871112)
 * 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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpStream: a Project Management Plugin for WordPress] error upstream plugin – custom fields section](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/)
 *  [key4it](https://wordpress.org/support/users/key4it/)
 * (@key4it)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15870391)
 * I can’t help you any further. You would need to download your own plugin and 
   extensions from [https://upstreamplugin.com/](https://upstreamplugin.com/)
    **
   Please read: you need to download all extensions from [https://upstreamplugin.com/](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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpStream: a Project Management Plugin for WordPress] error upstream plugin – custom fields section](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/)
 *  [key4it](https://wordpress.org/support/users/key4it/)
 * (@key4it)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15869926)
 * Hi Andrea,
 * This bugfix should make you able to update all upstream extensions you can download
   from [https://upstreamplugin.com/](https://upstreamplugin.com/)
 * I hope you can get this to work with this information 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpStream: a Project Management Plugin for WordPress] error upstream plugin – custom fields section](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/)
 *  [key4it](https://wordpress.org/support/users/key4it/)
 * (@key4it)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15866689)
 * 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**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpStream: a Project Management Plugin for WordPress] error upstream plugin – custom fields section](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/)
 *  [key4it](https://wordpress.org/support/users/key4it/)
 * (@key4it)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15864324)
 * 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)