I have created event and event view using view from template option ([http://www.ostraining.com/blog/drupal/calendar-in-drupal/][1]). The event are not shown within calendar on local machine. But on server they shown in calendar. Also i got error
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of C:\xampp\htdocs\allstate\sites\all\modules\calendar\theme\theme.inc).
Please help me.
This seems to be a bug in the calendar module with php 5.4. There is a patch: https://drupal.org/node/1471400
Related
I have a TextBox bound to property MinDuration of the ViewModel. And MinDuration always should be less or equal the Duration property of the ViewModel. So, my XAML:
<TextBox Text="{Binding BasePO.MinDuration, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
And there is my property:
private double minDuration;
public double MinDuration
{
get { return minDuration; }
set
{
if (value > Duration)
minDuration = Duration;
else
minDuration = value;
OnPropertyChanged("MinDuration");
}
}
So, let Duration = 40. Now, that is results of binding:
if I put 4 -> TextBox displays 4
if then I put 5 (the value is 45 now) -> TextBox displays 40 (Correct!)
But, there is the problem:
if I put 4 -> TextBox displays 4
if then I put 0 (the value is 40 now) -> TextBox displays 40
if then I put, for example, 5 (the value is 405 now) -> TextBox displays 405 (Why???)
There is trace of binding:
System.Windows.Data Warning: 90 : BindingExpression (hash=22334206): Update - got raw value '4'
System.Windows.Data Warning: 93 : BindingExpression (hash=22334206): Update - implicit converter produced '4'
System.Windows.Data Warning: 94 : BindingExpression (hash=22334206): Update - using final value '4'
System.Windows.Data Warning: 102 : BindingExpression (hash=22334206): SetValue at level 1 to PO (hash=59829654) using RuntimePropertyInfo(MinDuration): '4'
System.Windows.Data Warning: 95 : BindingExpression (hash=22334206): Got PropertyChanged event from PO (hash=59829654)
System.Windows.Data Warning: 101 : BindingExpression (hash=22334206): GetValue at level 0 from PoTableForm (hash=53931641) using RuntimePropertyInfo(BasePO): PO (hash=59829654)
System.Windows.Data Warning: 101 : BindingExpression (hash=22334206): GetValue at level 1 from PO (hash=59829654) using RuntimePropertyInfo(MinDuration): '4'
System.Windows.Data Warning: 80 : BindingExpression (hash=22334206): TransferValue - got raw value '4'
System.Windows.Data Warning: 84 : BindingExpression (hash=22334206): TransferValue - implicit converter produced '4'
System.Windows.Data Warning: 89 : BindingExpression (hash=22334206): TransferValue - using final value '4'
Поток '<Без имени>' (0x19b4) завершился с кодом 0 (0x0).
System.Windows.Data Warning: 90 : BindingExpression (hash=22334206): Update - got raw value '45'
System.Windows.Data Warning: 93 : BindingExpression (hash=22334206): Update - implicit converter produced '45'
System.Windows.Data Warning: 94 : BindingExpression (hash=22334206): Update - using final value '45'
System.Windows.Data Warning: 102 : BindingExpression (hash=22334206): SetValue at level 1 to PO (hash=59829654) using RuntimePropertyInfo(MinDuration): '45'
System.Windows.Data Warning: 95 : BindingExpression (hash=22334206): Got PropertyChanged event from PO (hash=59829654)
System.Windows.Data Warning: 101 : BindingExpression (hash=22334206): GetValue at level 0 from PoTableForm (hash=53931641) using RuntimePropertyInfo(BasePO): PO (hash=59829654)
System.Windows.Data Warning: 101 : BindingExpression (hash=22334206): GetValue at level 1 from PO (hash=59829654) using RuntimePropertyInfo(MinDuration): '40'
System.Windows.Data Warning: 80 : BindingExpression (hash=22334206): TransferValue - got raw value '40'
System.Windows.Data Warning: 84 : BindingExpression (hash=22334206): TransferValue - implicit converter produced '40'
System.Windows.Data Warning: 89 : BindingExpression (hash=22334206): TransferValue - using final value '40'
System.Windows.Data Warning: 90 : BindingExpression (hash=22334206): Update - got raw value '405'
System.Windows.Data Warning: 93 : BindingExpression (hash=22334206): Update - implicit converter produced '405'
System.Windows.Data Warning: 94 : BindingExpression (hash=22334206): Update - using final value '405'
System.Windows.Data Warning: 102 : BindingExpression (hash=22334206): SetValue at level 1 to PO (hash=59829654) using RuntimePropertyInfo(MinDuration): '405'
System.Windows.Data Warning: 95 : BindingExpression (hash=22334206): Got PropertyChanged event from PO (hash=59829654)
System.Windows.Data Warning: 101 : BindingExpression (hash=22334206): GetValue at level 0 from PoTableForm (hash=53931641) using RuntimePropertyInfo(BasePO): PO (hash=59829654)
System.Windows.Data Warning: 101 : BindingExpression (hash=22334206): GetValue at level 1 from PO (hash=59829654) using RuntimePropertyInfo(MinDuration): '40'
System.Windows.Data Warning: 80 : BindingExpression (hash=22334206): TransferValue - got raw value '40'
System.Windows.Data Warning: 84 : BindingExpression (hash=22334206): TransferValue - implicit converter produced '40'
System.Windows.Data Warning: 89 : BindingExpression (hash=22334206): TransferValue - using final value '40'
As you can see, when I put 405 using final value '40', but TextBox displays 405. And the binding not working for every numbers starting with 40 (in this example).
This is a actually an old bug that has been fixed in the .NET Framework 4.5. Please refer to #Matt's answer here for more information.
Bound WPF TextBox is not updating value when the bound property enforces some business rules
If you can't upgrade to 4.5 for some reasons you may want to try the workaround suggested here:
WPF - MVVM - Textbox getting out of sync with viewmodel property
It should be mentioned that the oldest officially supported version of the .NET Framework is currently 4.5.2 so it might be an idea to upgrade after all: https://blogs.msdn.microsoft.com/dotnet/2015/12/09/support-ending-for-the-net-framework-4-4-5-and-4-5-1/
using the bootstrap 7.x-3.6 in drupal 7. Guide me how to create the sub-theme.
I am getting following errors.
Notice: Undefined variable: navbar_classes in include() (line 76 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php).
Notice: Undefined variable: container_class in include() (line 77 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php).
Notice: Undefined variable: container_class in include() (line 117 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php).
Notice: Undefined variable: content_column_class in include() (line 135 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php).
Notice: Undefined variable: container_class in include() (line 169 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\page.tpl.php).
Notice: Undefined variable: html_attributes in include() (line 57 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\html.tpl.php).
Notice: Undefined variable: body_attributes in include() (line 71 of C:\xampp\htdocs\Drupal\sites\all\themes\Indivar\templates\html.tpl.php).
You should rename .info file in the subtheme folder as as well..
This should be the folder structure
/sites/all/themes/bootstrap
/sites/all/themes/subtheme_name
/sites/all/themes/subtheme_name/subtheme_name.info
Presently I am attempting to build Gendarme 2.10 using Visual Studio 2010. Here are some of the errors I'm receiving:
Error 85 Argument 1: cannot convert from 'System.Reflection.ConstructorInfo' to 'Mono.Cecil.TypeReference' C:\Tools\mono-tools\external\cecil\Test\Mono.Cecil.Tests\CustomAttributesTests.cs 359 45 Mono.Cecil.Tests
Error 12 Argument 1: cannot convert from 'System.Reflection.FieldInfo' to 'Mono.Cecil.TypeReference' C:\Tools\mono-tools\external\cecil\Test\Mono.Cecil.Tests\ImportReflectionTests.cs 103 45 Mono.Cecil.Tests
Error 24 Argument 1: cannot convert from 'System.Reflection.FieldInfo' to 'Mono.Cecil.TypeReference' C:\Tools\mono-tools\external\cecil\Test\Mono.Cecil.Tests\ImportReflectionTests.cs 149 44 Mono.Cecil.Tests
Error 46 Argument 1: cannot convert from 'System.Reflection.FieldInfo' to 'Mono.Cecil.TypeReference' C:\Tools\mono-tools\external\cecil\Test\Mono.Cecil.Tests\ImportReflectionTests.cs 198 44 Mono.Cecil.Tests
Error 60 Argument 1: cannot convert from 'System.Reflection.FieldInfo' to 'Mono.Cecil.TypeReference' C:\Tools\mono-tools\external\cecil\Test\Mono.Cecil.Tests\ImportReflectionTests.cs 276 39 Mono.Cecil.Tests
Error 14 Argument 1: cannot convert from 'System.Reflection.MethodInfo' to 'Mono.Cecil.TypeReference' C:\Tools\mono-tools\external\cecil\Test\Mono.Cecil.Tests\ImportReflectionTests.cs 117 43 Mono.Cecil.Tests
After I remove all the tests projects, here are the errors I'm getting:
Error 4 Argument 1: cannot convert from 'System.Type' to 'Mono.Cecil.TypeReference' C:\Tools\mono-tools\gendarme\framework\Gendarme.Framework.Helpers\PrimitiveReferences.cs 53 25 Gendarme.Framework
Error 3 The best overloaded method match for 'Mono.Cecil.ModuleDefinition.Import(Mono.Cecil.TypeReference)' has some invalid arguments C:\Tools\mono-tools\gendarme\framework\Gendarme.Framework.Helpers\PrimitiveReferences.cs 53 10 Gendarme.Framework
Here is the code that the above two errors refer to:
static TypeReference GetReference (Type type, IMetadataTokenProvider metadata)
{
ModuleDefinition module = metadata.GetAssembly ().MainModule;
TypeReference tr;
if (!module.TryGetTypeReference (type.FullName, out tr))
tr = module.Import (type);
return tr;
}
Does anyone have any suggestions? TIA.
Roger
Here is a temporary solution I put together. Please feel free to comment:
static TypeReference GetReference (Type type, IMetadataTokenProvider metadata)
{
ModuleDefinition module = metadata.GetAssembly ().MainModule;
ModuleKind kind = ModuleKind.Windows;
ModuleDefinition definition = ModuleDefinition.CreateModule(module.Name, kind);
Version version = new Version(1, 0);
AssemblyNameDefinition nameDefinition = new AssemblyNameDefinition(module.Name, version);
AssemblyDefinition assemblyDefinition = AssemblyDefinition.CreateAssembly(nameDefinition, definition.Name, kind);
assemblyDefinition = AssemblyDefinition.ReadAssembly(module.Name);
definition.Assembly = assemblyDefinition;
IMetadataScope scope = new ModuleReference(module.Name);
scope.MetadataToken = assemblyDefinition.MetadataToken;
TypeReference tr = new TypeReference(type.Namespace, type.Name, definition, scope);
//if (!module.TryGetTypeReference(type.FullName, out tr))
// tr = module.Import(type);
return tr;
}
Getting this. Site works fine locally, but up on production server I get this error.
cakephp verion 1.3
Production: php 5.3.3-7+squeeze7
Dev: 5.3.3-7+squeeze3
Notice (8): Undefined property: View::$Js [APP/views/layouts/default.ctp, line 31]
Code | Context
include - APP/views/layouts/default.ctp, line 31
View::_render() - CORE/cake/libs/view/view.php, line 736
View::renderLayout() - CORE/cake/libs/view/view.php, line 494
View::render() - CORE/cake/libs/view/view.php, line 440
Controller::render() - CORE/cake/libs/controller/controller.php, line 909
ErrorHandler::_outputMessage() - CORE/cake/libs/error.php, line 458
ErrorHandler::missingComponentFile() - CORE/cake/libs/error.php, line 415
Object::dispatchMethod() - CORE/cake/libs/object.php, line 112
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 125
Object::cakeError() - CORE/cake/libs/object.php, line 201
Component::_loadComponents() - CORE/cake/libs/controller/component.php, line 216
Component::init() - CORE/cake/libs/controller/component.php, line 78
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 483
CakeErrorController::__construct() - CORE/cake/libs/error.php, line 52
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 90
Object::cakeError() - CORE/cake/libs/object.php, line 201
Component::_loadComponents() - CORE/cake/libs/controller/component.php, line 216
Component::init() - CORE/cake/libs/controller/component.php, line 78
Fatal error: Call to a member function writeBuffer() on a non-object in /var/www/website.local/views/layouts/default.ctp on line 31
Line 31 is
echo $this->Js->writeBuffer(array('cache'=> true));
I have in app_controller.php
<?php
class AppController extends Controller {
var $helpers = array('Html','Form','Session','Js','Javascript');
var $components = array(
'Session',
'RequestHandler',
'DebugKit.Toolbar'
);
}
?>
It looks like you are missing a component file:
ErrorHandler::missingComponentFile() - CORE/cake/libs/error.php, line 415
You may want to explore that error first, and then see if it fixes your other issue.
I'm having a bit of trouble including headers from Windows Driver Kit to Visual Studio 2010. Can anyone help me, what I am doing wrong?
I get error message such as C1083: Cannot open include file: 'sal.h': No such file or directory.
If I include SDK directory, I get error messages such as type redefinitions.
If I copy sal.h to DDK directory, I get error message C1083: Cannot open include file: 'codeanalysis\sourceannotations.h': No such file or directory.
If I copy sourceannotations.h file to DDK directory I get other error messages (see below)
VC++ Directoy settings: include directory settings
#include "stdafx.h"
#include <Winsock2.h>
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <strsafe.h>
#include <fwpmu.h>
#include <ndis.h>
Error 1 error C1083: Cannot open include file: 'codeanalysis\sourceannotations.h': No such file or directory c:\winddk\7600.16385.1\inc\crt\sal.h 160 1 wfp
2 IntelliSense: cannot open source file "codeanalysis\sourceannotations.h" c:\winddk\7600.16385.1\inc\crt\sal.h 160 1
21 IntelliSense: cannot overload functions distinguished by return type alone c:\winddk\7600.16385.1\inc\ddk\ntddk.h 2895 1
22 IntelliSense: cannot overload functions distinguished by return type alone c:\winddk\7600.16385.1\inc\ddk\ntddk.h 2907 1
23 IntelliSense: cannot overload functions distinguished by return type alone c:\winddk\7600.16385.1\inc\ddk\ntddk.h 2917 1
8 IntelliSense: expected a ')' c:\winddk\7600.16385.1\inc\api\fwptypes.h 345 49
6 IntelliSense: expected a ';' c:\winddk\7600.16385.1\inc\api\fwptypes.h 281 4
9 IntelliSense: expected a ';' c:\winddk\7600.16385.1\inc\api\fwptypes.h 364 1
11 IntelliSense: expected a ';' c:\winddk\7600.16385.1\inc\api\iketypes.h 370 1
16 IntelliSense: expected a ';' c:\winddk\7600.16385.1\inc\ddk\wdm.h 8838 1
25 IntelliSense: expected a declaration c:\winddk\7600.16385.1\inc\ddk\ntddk.h 15056 5
4 IntelliSense: expected a type specifier c:\winddk\7600.16385.1\inc\api\fwptypes.h 275 18
3 IntelliSense: expected an identifier c:\winddk\7600.16385.1\inc\api\fwptypes.h 275 5
7 IntelliSense: expected an identifier c:\winddk\7600.16385.1\inc\api\fwptypes.h 345 5
10 IntelliSense: expected an identifier c:\winddk\7600.16385.1\inc\api\iketypes.h 369 2
18 IntelliSense: expected an identifier c:\winddk\7600.16385.1\inc\ddk\wdm.h 17964 1
19 IntelliSense: expected an identifier c:\winddk\7600.16385.1\inc\ddk\wdm.h 17970 9
24 IntelliSense: expected an identifier c:\winddk\7600.16385.1\inc\ddk\ntddk.h 15037 3
14 IntelliSense: identifier "FWP_FILTER_ENUM_TYPE" is undefined c:\winddk\7600.16385.1\inc\api\fwpmtypes.h 413 5
12 IntelliSense: identifier "IKEEXT_IP_VERSION_SPECIFIC_KEYMODULE_STATISTICS0" is undefined c:\winddk\7600.16385.1\inc\api\iketypes.h 418 5
13 IntelliSense: identifier "IKEEXT_IP_VERSION_SPECIFIC_KEYMODULE_STATISTICS0" is undefined c:\winddk\7600.16385.1\inc\api\iketypes.h 419 5
20 IntelliSense: identifier "PCALLBACK_FUNCTION" is undefined c:\winddk\7600.16385.1\inc\ddk\wdm.h 17994 10
17 IntelliSense: identifier "TIME_FIELDS" is undefined c:\winddk\7600.16385.1\inc\ddk\wdm.h 9012 9
15 IntelliSense: this declaration has no storage class or type specifier c:\winddk\7600.16385.1\inc\ddk\wdm.h 8837 1
5 IntelliSense: unexpected parenthesis after declaration of function "<error>" (malformed parameter list or invalid initializer?) c:\winddk\7600.16385.1\inc\api\fwptypes.h 278 4
You cant' mix the headers from the SDK with the ones from the DDK.
So uncheck the box for inheriting parent settings. May then you have to add other directories from the DDK.
Also note that you also can't mix libraries from the DDK with the ones from the SDK. So you have to do there almost the same.