Skip Navigation

[Closed] Something went wrong while fetching the dynamic content from the selected source

This support ticket is created 2 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 3 voices.

Last updated by Shane 2 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#2271139
d98b23ee-d97a-40cd-8945-9e47f84f434e.png

When I try to edit a specific template for a custom post, it displays the following message and the content is not loading.
"Something went wrong while fetching the dynamic content from the selected source, with message: "Sorry, you are not allowed to do that."" In the front end the template displays content.

#2271309

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Could you please check the browser console to see if it gives any more information about the failed request?

Also, check your debug log to see if there are any PHP errors that prevent the request from completing.

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor.

Try visiting the same page where you observe the problem and then inspect the log. If you don't find the debug.log file it means it didn't generate any warnings or errors.

#2271433
failed-to-load.png

I use Firefox and Chrome with the same problem. I think the problem started with the latest toolset update but I'm not sure. The console and the debug.log have errors. I include the debug.log and the description of the console. I'm also attaching a screenshot from the console.

Debug.log

[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'dynamic_sources_content_processed' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 54
[20-Jan-2022 16:25:24 UTC] PHP Warning:  Creating default object from empty value in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 59
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Undefined property: stdClass::$post_content in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 60
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'dynamic_sources_content_processed' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 54
[20-Jan-2022 16:25:24 UTC] PHP Warning:  Creating default object from empty value in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 59
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Undefined property: stdClass::$post_content in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 60
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_name' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostName.php on line 51
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_date' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDate.php on line 32
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_date_gmt' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateGMT.php on line 36
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_date_gmt' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateGMT.php on line 38
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_modified' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateModified.php on line 32
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_modified_gmt' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateModifiedGMT.php on line 36
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_modified_gmt' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateModifiedGMT.php on line 38
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostType.php on line 51
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_status' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostStatus.php on line 51
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'comment_status' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/CommentsStatus.php on line 51
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'dynamic_sources_content_processed' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 54
[20-Jan-2022 16:25:24 UTC] PHP Warning:  Creating default object from empty value in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 59
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Undefined property: stdClass::$post_content in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostContent.php on line 60
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_name' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostName.php on line 51
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_date' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDate.php on line 32
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_date_gmt' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateGMT.php on line 36
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_date_gmt' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateGMT.php on line 38
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_modified' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateModified.php on line 32
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_modified_gmt' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateModifiedGMT.php on line 36
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_modified_gmt' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostDateModifiedGMT.php on line 38
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostType.php on line 51
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'post_status' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/PostStatus.php on line 51
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'comment_status' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/Sources/CommentsStatus.php on line 51
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55
[20-Jan-2022 16:25:24 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/vhosts/targetanalysis.gr/new.targetanalysis.gr/wp-content/plugins/toolset-blocks/vendor/toolset/dynamic-sources/server/OtherFieldsSources/Main.php on line 55

One of the Console's errors

18:12:13.937 <em><u>hidden link</u></em>
[HTTP/2 403 Forbidden 555ms]
	
GET
	<em><u>hidden link</u></em>
Status
403
Forbidden
VersionHTTP/2
Transferred692 B (98 B size)
Referrer Policystrict-origin-when-cross-origin

    	
    access-control-allow-headers
    	Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type
    access-control-expose-headers
    	X-WP-Total, X-WP-TotalPages, Link
    cache-control
    	no-cache, must-revalidate, max-age=0
    content-encoding
    	br
    content-type
    	application/json; charset=UTF-8
    date
    	Thu, 20 Jan 2022 16:12:15 GMT
    expires
    	Wed, 11 Jan 1984 05:00:00 GMT
    link
    	<<em><u>hidden link</u></em>;; rel="<em><u>hidden link</u></em>"
    server
    	nginx
    vary
    	Accept-Encoding
    x-content-type-options
    	nosniff
    X-Firefox-Spdy
    	h2
    x-robots-tag
    	noindex
    x-wp-nonce
    	8bce35a14f
    	
    Accept
    	application/json, */*;q=0.1
    Accept-Encoding
    	gzip, deflate, br
    Accept-Language
    	en-US,en;q=0.5
    Connection
    	keep-alive
    Cookie
    	wp-settings-time-5=1641303611; wordpress_test_cookie=WP%20Cookie%20check; PHPSESSID=9ca44841381aa0b82c53525c458edcf5; wordpress_logged_in_b38956d5538e23a7b51311855b8ef70a=patsaradmin%7C1643726447%7CoizCCxQXhrncpnl3PindRfRSREuhtWxmRAmTtgumtzu%7Cc6166be4e845ddb2c0ea27fb34670eed733aca9be5e1a2ab60bc9b2b6645b5fd; wp-settings-1=libraryContent%3Dbrowse%26hidetb%3D1%26mfold%3Do%26editor%3Dtinymce; wp-settings-time-1=1642516854; wp-wpml_current_language=en; wp-wpml_current_admin_language_d41d8cd98f00b204e9800998ecf8427e=en
    Host
    	new.targetanalysis.gr
    Referer
    	<em><u>hidden link</u></em>
    Sec-Fetch-Dest
    	empty
    Sec-Fetch-Mode
    	cors
    Sec-Fetch-Site
    	same-origin
    Sec-GPC
    	1
    TE
    	trailers
    User-Agent
    	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0
    X-WP-Nonce
    	8bce35a14f
#2271567

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kostas,

Thank you for the detailed debug information.

Based on what I see there is an empty post content data. This can happen if there are no posts selected in the "View With" section at the top of the page.

From your screenshot I can see that you have not selected any posts for the "View With" option to essentially preview and design your content template with.

Can you select a post from the dropdown and let me know if the problem still persists.

Thanks,
Shane

#2272059

Yes, you are right. If I select a product it works. However, in the dropdown, the options are very few, as it displays the last 5 from the 111 products. If I click "Edit template for Laboratory products" from the front end from another product it doesn't work. Moreover if you click on the template from the toolset dashboard, the problem exists. And something strange. In the all items screen, it mentions 2 item on the draft tab, but when I click draft there isn't any item.

#2272071

Yes, you are right, I didn't notice. However, the dropdown displays only the last 5 items from 111. If you click "Edit template for Laboratory Products" the problem exists. Same if you click the content template from the Toolset Dashboard. Another strange issue is that in the backend, all items page, there are 2 items in drafts. However, if you click on drafts there isn't any item.

#2272331

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kostas,

Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?

Please where applicable please provide me with a link to an example page where I can see the issue.

I've enabled the private fields for your next response.

What should happen is that a product should always be selected when editing the template. Also the view with field is a select2 field so you're able to search for any product using this option.

Thanks,
Shane

#2272469

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kostas,

Thank you for the credentials.

Based on what I see the template is operating as intended now given that a post has been selected in the template editor to use as the bases for creating the template. So long as there is a post selected then the template will function as normal, also as previously mentioned you can use any of your posts of that post type as the bases for editing the template.

Another strange issue is that in the backend, all items page, there are 2 items in drafts. However, if you click on drafts there isn't any item.

These might be orphaned posts. Are you able to recall the title of these 2 draft items ? As we may need to locate them directly in the database.

Please let me know.
Thanks,
Shane

The topic ‘[Closed] Something went wrong while fetching the dynamic content from the selected source’ is closed to new replies.