Since applying the latest critical security update, all pages that have the HTML module on them are throwing the following error resulting in a 404 page for the user. Please advise! Is there a good replacement module that we can use instead?
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'ModuleContext' does not exist in the current context
Source Error:
Line 41: {
Line 42: var wasReplacing = false;
Line 43: ModuleContext.Settings["MyTokensReplace"] = false;
Line 44: if (ModuleContext.Settings["TEXTHTML_ReplaceTokens"] != "") {
Line 45: if (Convert.ToBoolean(ModuleContext.Settings["TEXTHTML_ReplaceTokens"]) == true) {
This appears to be related to the MyTokens module. See the post on their website here:
https://www.dnnsharp.com/helpcenter/case/62435
Related
Any idea about below error?
Could not find a component named 'MainLayout'. Did you forget
to add it to App_Start\ReactConfig.cs?
Description: An unhandled exception occurred.
Exception Details: React.Exceptions.ReactInvalidComponentException: Could not find a component named 'MainLayout'. Did you
forget to add it to App_Start\ReactConfig.cs?
Source Error:
Line 119: if (ReactSettingsProvider.Current.EnableClientSide &&
!isEditingOverrideEnabled)
Line 120: {
Line 121: writer.WriteLine(reactComponent.RenderHtml());
Line 122:
Line 123: var tagBuilder = new TagBuilder("script")
Source File: C:\Project\HenryFord\Sitecore\src\Foundation\React\code\Mvc\JsxView.cs Line: 121
[ReactInvalidComponentException: Could not find a component named
'MainLayout'. Did you forget to add it to App_Start\ReactConfig.cs?]
React.ReactComponent.EnsureComponentExists() in
D:\a\1\s\src\React.Core\ReactComponent.cs:279
Server.min.js has component Mainlayout code still in backend we get error
“could not find a component named Mainlayout”.
Please let me know if more information is required. Thanks.
After updating twilio-video JS SDK (from 1.x to 2.x) I have a problem in adding additional device.
This is example error message - ERROR TypeError: transceiver.sender.replaceTrack(...).then(...).finally is not a function.
If I disable this device i get new error message - ERROR Error: Uncaught (in promise): Error: The [LocalVideoTrack #5: 8da6e8e0-a9c1-473b-9916-484a17f61524] was unpublished.
And if I repeat enable device - is OK.
Below is example publishing track in share additional track method.
this.room
.localParticipant
.publishTrack(this.deviceTracks[type]);
this.deviceTrackShared[type] = true;
Below is example unpublishing track -
this.room
.localParticipant
.unpublishTrack(this.deviceTracks[type]);
this.deviceTrackShared[type] = false;
So, I fixed this issue. I lost a lot of time searching for errors in the code, but I just needed to update zone.js from 0.8.x to 0.9.x. Now it's working fine!
I followed this tutorial to install the Wiris plugin on a new installation of Drupal.
Once the installation was complete and I clicked on the Wiris icon to begin adding a formula, the popup window does NOT load and I get the following error in the console area:
Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '/DrupalQuiz/sites/all/libraries/ckeditor/plugins/ckeditor_wiris/' in a call to 'postMessage'.
at http://*.*.*.*/DrupalQuiz/sites/all/libraries/ckeditor/plugins/ckeditor_wiris/core/core.js:19:22
The code causing the problem is as follows:
e.source.postMessage(postVariable, _wrs_conf_path);
I'm at a loss how to deal with this issue.
I don't have a complete fix but I was able to get it working locally by replacing _wrs_conf_path with the base path of my dev box. _wrs_conf_path was evaluating to a relative path to the plugins folder.
if (typeof(e.source) != 'undefined') {
e.source.postMessage(postVariable, _wrs_conf_path);
}
with
if (typeof(e.source) != 'undefined') {
e.source.postMessage(postVariable, _wrs_currentPath);
}
in the /sites/all/libraries/ckeditor/plugins/ckeditor_wiris/core/core.js file.
Edit: I replaced _wrs_conf_path with one of their internal variables _wrs_currentPath and that seemed to fix the issue.
I am using cakePHP and I am trying to get locally the profile picture in facebook after logging in using her/his facebook.
Saving is working fine, the only problem that I've been encountering is the SSL error,
Warning (2): file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed [APP\Controller\FacebookCpsController.php, line 98]
Warning (2): file_get_contents() [function.file-get-contents]: Failed to enable crypto [APP\Controller\FacebookCpsController.php, line 98]
Warning (2): file_get_contents(https://graph.facebook.com/10203572402389803/picture) [function.file-get-contents]: failed to open stream: operation failed [APP\Controller\FacebookCpsController.php, line 98]
Warning (2): file_put_contents(/files/user_profile) [function.file-put-contents]: failed to open stream: No such file or directory [APP\Controller\FacebookCpsController.php, line 99]
My controller name is FacebookCps.
and this is my line 98 and 99:
line 98: $image = file_get_contents('https://graph.facebook.com/'.$uid.'/picture');
line 99: file_put_contents('/files/user_profile', $image);
My extension=php_openssl is already uncomment in my php.ini (C:/xampp/php/phpini)
Thank you for any suggestion/help.
#Janelle Ann Lagatuz As the error says, ".... routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed ..." you should download a certificate bundle. Place it somewhere on web server where you can access it and giving the user permission to read the file. Then try this code:
$arrContextOptions=array(
"ssl"=>array(
"cafile" => "/path/to/bundle/ca-bundle.crt",
"verify_peer"=> true,
"verify_peer_name"=> true,
),
);
Their is another approach too, instead of passing the certificate, just put the verify_peer and verify_peer_name as false and pass it as follows (you can see the description of this method here: http://php.net/manual/en/migration56.openssl.php) :
<?php
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$image = file_get_contents('https://graph.facebook.com/'.$uid.'/picture', false, stream_context_create($arrContextOptions));
echo $response; ?>
But remember, this is not good approach as you are not passing the certificate, this breaks SSL certification and is a security hole.
I am very (very) new to shibboleth, currently I am doing configuration by editing the shobboleth2.xml and I use shibboleth 2.4 but I am getting following error when I restart the shibboleth.
shibd error: unable to run config check as user
Restarting Shibboleth 2 daemon: 2013-03-04 13:15:27 ERROR XMLTooling.ParserPool : error on line 28, column 40, message: attribute 'homeUrl' is not declared for element 'ApplicationDefaults'
2013-03-04 13:15:27 ERROR Shibboleth.Config : error while loading resource (/etc/shibboleth/shibboleth2.xml): XML error(s) during parsing, check log for specifics
2013-03-04 13:15:27 FATAL Shibboleth.Config : caught exception while loading configuration: XML error(s) during parsing, check log for specifics
configuration is invalid, check console for specific problems
In my shibboleth2.xml I have already added the homeUrl.
<!-- The ApplicationDefaults element is where most of Shibboleth's SAML bits are defined. -->
<ApplicationDefaults id="default"
policyId="default"
entityID="https://somesite.com/shibboleth/default"
homeUrl="https://somesite.com/"
REMOTE_USER="eppn persistent-id targeted-id"
signing="false" encryption="false">
Remove the attribute "homeUrl" from your <ApplicationDefaults /> element.
<ApplicationDefaults id="default"
policyId="default"
entityID="https://somesite.com/shibboleth/default"
REMOTE_USER="eppn persistent-id targeted-id"
signing="false" encryption="false">