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 https://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 youThe page I need help with: [log in to see the link]
-
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); } } }
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 gratefulHi 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
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 timeHi 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 ??
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 problemI 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.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 youOr is it possible to buy only the custom fields extension?
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
- The topic ‘error upstream plugin – custom fields section’ is closed to new replies.