Strange behavior happening in Silverstripe backend? - silverstripe

All of a sudden whenever I try to click into a page in the silverstripe backend it initially displays like this, I was running SS 3.2, when this started happening I upgraded to 3.2.1 to see if that would fix the issues but nope:
Sometimes it displays this error message aswell: [User Warning] Couldn't set response type to 404 because of output on line 1 of /Users/computername/Sites/themename/mysite/code/Pages/HomePage.php
If I refresh it comes right but then if I go to add something through a gridfield after I click "create" it just goes to a blank screen but it still adds to the Dataobject.
Any idea whats happening?

Sorted this. I had a space or two in front of my <?php tag on the HomePage.php - Now it is working fine :)

Related

Post link redirects to homepage on first session - Wordpress custom template

I'm currently working on and troubleshooting the following custom wordpress site: https://matsomenosgatos.gr/
The issue here I cannot resolve is that, when you click on a post link (for example https://matsomenosgatos.gr/nba-teleionoyn-oi-leikers/)
on first session it redirects you to hompepaga and if you click on it again it gets you to the post as it should.
I've been struggling to fix this for a long time now, but I've never seen a similar issue before.
If anyone has an idea I'm open to suggestions.
Thanks for your time.

Elementor Form Showing Error While Submitting But i tired all available tweaks that are given in editor. please look into the matter

I'm trying to build a custom template of a simple booking form in wordpress using elementor and everything seems fine but forms not getting submitted and giving pretty general error and not a specific error about what's wrong.
From Image
I tried changing range and minimum date but no effect whatsoever
Form Setting Image

How to always expand the WordPress custom field (back-end)

I am talking about Wordpress back-end here,
How to hide the wordpress collapse/expand button and keep it always expand
The code seems fine to me, but from what I saw you are loading the script.js (http://clipdisplayserver.de/wordpress/wp-content/themes/clip/js/script.js) file twice in the page. Maybe that's causing your problem.

Wordpress and Woocommerce - unable to add gallery

I am having a strange issue when trying to open the media modal from a woocommerce product.
Basically, the modal just won't show up.
I am running a fresh install of Wordpress (v4.6.1) and WooCommerce. The theme is a custom theme (with correct woocommerce declaration on my functions.php file)
I' ve already tried the following:
Disable all the plugins - Still not working
Revert theme - Still not working
Change permalinks for both Posts and Products - Still not working
Create new products - Still not working
And checked the following:
dev console - no errors are thrown
apache2 error log - again, clear, no errors.
apache2 access log - no errors, still all clear.
Something odd I've noticed, is the actual link:
When I click on add product gallery, the page refreshes because the link is the following:
"http://10.254.237.107/wp-admin/post.php?post=9675&action=edit"
while if I try to add a featured picture (that opens the same modal) the link is correct and the modal shows up correctly:
"http://10.254.237.107/wp-admin/media-upload.php?post_id=9675&type=image&TB_iframe=1"
Do you have any idea why this happens? and how to solve it, or maybe how to debug it a bit more deeply?
Thanks in advance for any suggestion
It turned out to be an issue related, somehow, with woocommerce. I installed a new one and it fixed itself.

Wordpress - Nested Shortcode from 2 different plugins half working

I am trying to use the Print This Section plugin with WP-Invoice and have been struggling for days now trying to figure out where the problem is?
With Both WP-invoice installed and working and WP Print This section also installed and working. On my Invoice page I have used
[print_this]
[wp-invoice]
[/print_this]
This displays perfectly the WP-invoice shortcode is read and processed and displays inside the Print this section box.
The problem is when I click the "Print This" button the page that opens up actually displays the text [wp-invoice] and not the actual invoice?
I have been all over the net and tried many things to do with nested shortcodes, from what I can tell I need a "do_shortcode($content)" somewhere but I can't figure out where?
A link to the sample invoice and problem:
http://www.yourtechally.com/client-login/invoice-online/?invoice_id=ef77a582808c0973b62d79f40059ce30
$code=do_shortcode('[wp-invoice]');
$shortcode='[print_this]'.$code.'[/print_this]';
do_shortcode($shortcode);
Try this, it could be the solution.

Resources