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

OGP: Caching Message Always Shows #31

Open
WillStrohl opened this issue Aug 31, 2015 · 5 comments
Open

OGP: Caching Message Always Shows #31

WillStrohl opened this issue Aug 31, 2015 · 5 comments
Labels
bug sponsors welcome Triaged and ready for development, pending a sponsor or free time availability
Milestone

Comments

@WillStrohl
Copy link
Owner

The open graph protocol HTML mark-up cannot be loaded from cache. It is suggested that you clear cache in the control panel to fix this issue.

v1.1 worked but upgraded to DNN 6.2.4 and had issues with profile. Upgraded to v1.3. As soon as you add a new page, you get above error with an ugly black stripe on web page saying Will.S .... End of Log.
Clearing cache, etc. nothing helps. Tried v1.2 same problem.
Event Viewer shows error:
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: WillStrohl.Modules.OpenGraph.OpenGraphStream.Write
StackTrace:
Message: System.NullReferenceException: Object reference not set to an instance of an object. at WillStrohl.Modules.OpenGraph.OpenGraphWriter.OpenGraphStream.Write(Byte[] buffer, Int32 offset, Int32 count)
Not sure what this means, it actually writes to server, config file changes or creates new one.
The pages from v1.1 did not have big ugly black stripe, only newly added pages. I did not have debug turned on.
Uninstalled module to fix error.
comments

brentwilson wrote May 18 at 7:30 AM

I also get this error - Using dnn7.x

ORIGINAL: https://dnnopengraph.codeplex.com/workitem/12557

@WillStrohl WillStrohl added the bug label Jul 17, 2016
@MaiklT
Copy link

MaiklT commented Oct 1, 2024

I also get this error, which makes the module unusable.

To help reproduce, here are the OGP settings I use:

Page Title: Home (use Page Settings Title checked)
Page Description: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. (use Page Settings checked)
Preferred Url: https://dnndev.me/locale/de-at (Use Default Page Url checked)
Site Locale: de-AT
Preferred Thumbnail: File, some jpeg from the site
Site Name: My Dev Site (Use Default Site checked)
Site Type: Websites: Website
Facebook Admin ID(s): (none)
Facebook Application ID: (none)
Enable Debugging: (not checked)

DNN version: 9.13.3

@WillStrohl
Copy link
Owner Author

I've put this into my backlog, but I don't know how soon I can get to it. I'm sorry. ☹️

@WillStrohl WillStrohl added the sponsors welcome Triaged and ready for development, pending a sponsor or free time availability label Oct 2, 2024
@alejoroman0605 alejoroman0605 mentioned this issue Oct 30, 2024
6 tasks
@WillStrohl WillStrohl added this to the OGP 02.01.00 milestone Oct 31, 2024
@MaiklT
Copy link

MaiklT commented Nov 4, 2024

I still have this error:

The open graph protocol HTML mark-up cannot be loaded from cache. It is suggested that you clear cache in the control panel to fix this issue.

Even after clearing the cache or restarting the application pool :-(

Please re-open, thanks!

@WillStrohl
Copy link
Owner Author

Hello @MaiklT ... We took another look at this and we're no longer able to reproduce the issue in our test environments. Are you able to provide any more details about how to reproduce this issue?

@MaiklT
Copy link

MaiklT commented Nov 20, 2024

I installed DNN 9.13.6 from scratch (blank website template, German), uploaded some images and then installed the module 2.1.0. I placed a module on the start page.

In the OGP Settings, I entered:

Page Title: Home (Use Page Settings Title: checked)
Page Description: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam (Use Page Settings: unchecked, grayed)
Preffered Url: http://xyz.local/ (Use Default Page Url: checked)
Site Locale: de-DE
Preferred Thumbnail: File (a file on your website), selected one of the uploaded images

Site-Level-Settings
Site Name: My Website (Use Default Site: checked)
Site Type: Websites: Website
Facebook Admin ID(s): (empty)
Facebook Application ID: (empty)
Enable Debugging?: (checked)

Worked...

On another portal (where I had installed OGP 2.0.0, uninstalled it - because of the error) and installed OGP 2.1.0 later, I get the error with exactly the same settings as above.

The open graph protocol HTML mark-up cannot be loaded from cache. It is suggested that you clear cache in the control panel to fix this issue.

Debug Window:
at WillStrohl.Modules.OpenGraph.OpenGraphWriter.OpenGraphStream.Write(Byte[] buffer, Int32 offset, Int32 count)
END OF LOG

Event Log:
AbsoluteURL:/de-at/API/PersonaBar/AdminLogs/GetLogTypes
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:bf5dff90-fc21-4afd-8a07-1415e196e19f
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:c/VSOLfdjVbmuX3+VZ641oZeHds=
Message:Object reference not set to an instance of an object.
StackTrace:
at WillStrohl.Modules.OpenGraph.OpenGraphWriter.OpenGraphStream.Write(Byte[] buffer, Int32 offset, Int32 count)
InnerMessage:
InnerStackTrace:
Source:WillStrohl.Modules.OpenGraph
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name: XXXXXX

@WillStrohl WillStrohl reopened this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug sponsors welcome Triaged and ready for development, pending a sponsor or free time availability
Projects
None yet
Development

No branches or pull requests

2 participants