Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON code appearing after save #58

Closed
ghost opened this issue Jul 10, 2018 · 14 comments
Closed

JSON code appearing after save #58

ghost opened this issue Jul 10, 2018 · 14 comments

Comments

@ghost
Copy link

ghost commented Jul 10, 2018

JSON_START{"html":"
Copyright Cake Spirit. 2018 | Privacy policy here </a></p>\r\n

</figure>","meta_searchable":"yes","title":""}JSON_END
Copyright Cake Spirit. 2018 | Privacy policy here

So I went and removed the image to see what that would do, and code is still there:

JSON_START{"html":"
Copyright Cake Spirit. 2018 | Privacy policy here </a></p>\r\n

</figure>","meta_searchable":"yes","title":""}JSON_END
Copyright Cake Spirit. 2018 | Privacy policy here

https://forum.pulsecms.com/t/loads-of-json-code-apeared-on-page-after-editing-a-block/1093

@ghost
Copy link
Author

ghost commented Jul 10, 2018

Is this related to #50 as it's the footer; or is it happening in all Blocks?

@jdloudon
Copy link

Seems to be just in footer, although I had a random instance of it happening in blog, but that seems to have gone now.
I tried deleting the block. Then made a new one containing just the image and it is still doing it. See the site now.
debug_info.zip

@ghost
Copy link
Author

ghost commented Jul 17, 2018

Thanks

The fix for links in the Footer is:
#50 (comment)

Will look through the Debug info also

@jdloudon
Copy link

Thanks, but I still have the issue even without a link being there:

http://cakespirit.co.uk/

James

@ghost
Copy link
Author

ghost commented Jul 18, 2018

Just looking at the logs for that site and can see this error:

[17-Jul-2018 10:22:22 Europe/London] PHP Warning: include(content/blocks/footer.txt): failed to open stream: No such file or directory in /var/www/vhosts/cakespirit.co.uk/httpdocs/template/layout.php on line 45
[17-Jul-2018 10:22:22 Europe/London] PHP Warning: include(content/blocks/footer.txt): failed to open stream: No such file or directory in /var/www/vhosts/cakespirit.co.uk/httpdocs/template/layout.php on line 45
[17-Jul-2018 10:22:22 Europe/London] PHP Warning: include(): Failed opening 'content/blocks/footer.txt' for inclusion (include_path='.:/opt/plesk/php/7.0/share/pear') in /var/www/vhosts/cakespirit.co.uk/httpdocs/template/layout.php on line 45

Can you check:

  1. Does the Footer.txt Block exist? In the Content Folder?
  2. What does the layout.php have to point to the Block? Is it <?php include("content/blocks/footer.txt"); ?> ?

@jdloudon
Copy link

jdloudon commented Jul 18, 2018 via email

@ghost
Copy link
Author

ghost commented Jul 19, 2018

Thanks

Now it exists - can you share the logs again as the error should be different :)

Thanks!

@jdloudon
Copy link

jdloudon commented Jul 19, 2018 via email

@ghost
Copy link
Author

ghost commented Jul 21, 2018

Can you attach them to this page as before? I think the email reply notification just removes the attachments... thanks

@jdloudon
Copy link

debug_info(2).zip

Here is latest debugs. Client wants to launch site now so I shall have to delete footer and just insert the logo hard coded into the layout template.
I still want this fixed though as we do want to use the footer are.
Note that now I cannot even edit it. I thought I might delete the logo from footer so its just blank but I could not even do that.
So I shall just go ahead and delete it with ftp.
image

@ghost
Copy link
Author

ghost commented Jul 24, 2018

Great thanks James - that's a good solution for now.

Got the debug info and let us look at this and work it into the next update

@ghost
Copy link
Author

ghost commented Aug 7, 2018

The custom layout seems to be wrong and needs to be updated. I suspect you would be seeing some javascript errors around missing JS files.

If possible, please update to Pulse 5.2 shortly and see if the issues appear again. 5.2 will be out soon.

In the meantime, checking the template custom layout with the example template or the manual might give a clue what is missing?

@ghost ghost closed this as completed Aug 11, 2018
@jdloudon
Copy link

Hello, this site is pretty much using the standard template. All I did was changed the images and logo really. So I would say its not a custom layout.

@ghost
Copy link
Author

ghost commented Aug 14, 2018

OK - let's try it with the new version soon and see if that helps it. Hopefully it does!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant