Title: error upstream plugin &#8211; custom fields section
Last modified: July 27, 2022

---

# error upstream plugin – custom fields section

 *  [andreapiccinini](https://wordpress.org/support/users/andreapiccinini/)
 * (@andreapiccinini)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/)
 * Good morning,
    I am a customer of yours with a purchased Professional license,
   and I installed the plugin on the website [http://www.acmehse.com](http://www.acmehse.com),
   for a year now the plugin has always worked but since this morning the UpStream
   plugin does not work and creates conflicts with the site, especially in the Custom
   Fields section. How can I solve the problem? Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-upstream-plugin-custom-fields-section%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [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);
                       }
                   }
       }
       ```
   
 *  Thread Starter [andreapiccinini](https://wordpress.org/support/users/andreapiccinini/)
 * (@andreapiccinini)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15866655)
 * Hi key4it, thanks for your answer.
    I tried to reactivate the custom field plugin
   but it always gives me the same error (a gray screen that says “cannot find supporting
   classes for custom fields”) How can I solve the problem? I ask you for a lot 
   of help, thanks to your plugin I manage all our customers and now they are in
   trouble. If you can help me I would be very grateful
 *  [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**
 *  Thread Starter [andreapiccinini](https://wordpress.org/support/users/andreapiccinini/)
 * (@andreapiccinini)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15867229)
 * Hello Key4it,
    I entered and executed everything as you wrote me, most of the
   errors have been fixed and now I can access the plugins and users section, but
   it still gives me an error: when I enter the projects section in the wordpress
   menu, I only see the custom fields section (but I don’t see the activities, customers…
   sections) and if I click on it it always gives me an error and displays the message
   you do not have permission to acces this page. How can I do? Thanks for your 
   time
 *  [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 🙂
 *  Thread Starter [andreapiccinini](https://wordpress.org/support/users/andreapiccinini/)
 * (@andreapiccinini)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15870052)
 * Ok thanks, but unfortunately this error remains.
    Can I ask you to send me a 
   complete copy of the plugin? If not, I can’t solve the problem
 *  [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.
 *  Thread Starter [andreapiccinini](https://wordpress.org/support/users/andreapiccinini/)
 * (@andreapiccinini)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15870885)
 * Ok, but my plugin doesn’t work,
    I saw that you updated the plugin on July 27th
   in the custom fields section and the problem is there. I tried to delete and 
   add it again but now compare the error: Could not find helper classes for custom
   fields. Since I already have an annual license and it expires in January 2023
   and the problem is only for that extension. Can you send me the updated extension.
   I ask you please that at the moment I am really stuck at work and I have tried
   them all. Thank you
 *  Thread Starter [andreapiccinini](https://wordpress.org/support/users/andreapiccinini/)
 * (@andreapiccinini)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15870926)
 * Or is it possible to buy only the custom fields extension?
 *  [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

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

The topic ‘error upstream plugin – custom fields section’ is closed to new replies.

 * ![](https://ps.w.org/upstream/assets/icon-256x256.png?rev=1951706)
 * [UpStream: a Project Management Plugin for WordPress](https://wordpress.org/plugins/upstream/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/upstream/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/upstream/)
 * [Active Topics](https://wordpress.org/support/plugin/upstream/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/upstream/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/upstream/reviews/)

## Tags

 * [bugfix](https://wordpress.org/support/topic-tag/bugfix/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)

 * 10 replies
 * 2 participants
 * Last reply from: [key4it](https://wordpress.org/support/users/key4it/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/error-upstream-plugin-custom-fields-section/#post-15871112)
 * Status: not resolved