I installed Dotnetnuke 4.8 on my site. Then I downloaded upgrade package of 5.1 and upload all file as given http://www.dotnetnuke.com/Community/Wiki/tabid/1409/page/Upgrading-DotNetNuke/Default.aspx
But after upgrading I am getting following error:
**Server Error in '/dotnetnuke' 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: BC30451: Name 'Framework' is not declared.
Source Error:
Line 49: ' dynamically create provider
Line 50: Private Shared Sub CreateProvider()
Line 51: objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Html", ""), DataProvider)
Line 52: End Sub
Line 53:
Source File: C:\inetpub\vhosts\IRFANHYDER.COM\httpdocs\dotnetnuke\App_Code\HTML\DataProvider.vb Line: 51
**
Any Idea? What I did wrong?
Upgrading DNN from that point to 5.1 is a big task and should be done is smaller steps
Try going from 4.8 to 04.09.05
Then to 5.1.1 (link below recommends going to 5.4.4)
See link below for a fuller guide:
REF: http://www.willstrohl.com/Blog/EntryId/102/Suggested-DotNetNuke-Site-Upgrade-Path-s
Related
After updating my app from 3.9 to 4.1.4 shell scripts stopped working. Typing this bin/cake plugin assets symlink yields this error message:
PHP Fatal error: Uncaught Error: Class 'Cake\Routing\Router' not found in /var/www/releases/12/vendor/cakephp/cakephp/config/bootstrap.php:27
Stack trace:
#0 /var/www/releases/12/config/bootstrap.php(32): require()
#1 /var/www/releases/12/bin/cake.php(31): include('/var/www/...')
#2 {main}
thrown in /var/www/releases/12/vendor/cakephp/cakephp/config/bootstrap.php on line 27
I assume there is something wrong with autoloading, but I don`t know where to start with this.
It turns out I did not replace the contents of the bin folder. They have changed with the new major version of cakephp and must be replaced with the files from the app-skeleton: https://github.com/cakephp/app/tree/master/bin
I wanted to dive into CN1 soures. I've followed this and this tutorial with git. However in NetBeans when I ctrl-click on a CN1 object it shows "Showing generated source file. No sources are attached to class' JAR file.". If I attach the sources I've just downloaded ie "CodenameOne/CodenameOne/src" the sources are still unfound!
I tried to clean and build the project but errors appeared :
Building jar: /home/pathTo/CodenameOneSRC/CodenameOne/CodenameOne/dist/CodenameOne.jar
CodenameOne.jar:
JavaSE.init:
JavaSE.deps-jar:
Created dir: /home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/build
Updating property file: /home/pathTo/myProject/build/built-jar.properties
Created dir: /home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/build/classes
Created dir: /home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/build/empty
Created dir: /home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/build/generated-sources/ap-source-output
Compiling 21 source files to /home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/build/classes
warning: [options] bootstrap class path not set in conjunction with -source 1.7
/home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/src/com/codename1/impl/javase/JavaSEPort.java:115: error: package com.jhlabs.image does not exist
import com.jhlabs.image.GaussianFilter;
/home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/src/com/codename1/impl/javase/JavaSEPort.java:8757: error: cannot find symbol
GaussianFilter gf = new GaussianFilter(radius);
symbol: class GaussianFilter
location: class JavaSEPort
/home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/src/com/codename1/impl/javase/JavaSEPort.java:8757: error: cannot find symbol
GaussianFilter gf = new GaussianFilter(radius);
symbol: class GaussianFilter location: class JavaSEPort
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
1 warning
/home/pathTo/myProject/nbproject/build-impl.xml:914: The following error occurred while executing this line:
/home/pathTo/myProject/nbproject/build-impl.xml:1445: The following error occurred while executing this line:
/home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/nbproject/build-impl.xml:937: The following error occurred while executing this line:
/home/pathTo/CodenameOneSRC/CodenameOne/Ports/JavaSE/nbproject/build-impl.xml:269: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 14 seconds)
Furthermore the project cannot be run anymore because the main class is not found (although I added the ports/JavaSE.jar in the run section).
What can I do to correctly attach sources and make change to CN1 source code ?
Any help appreciated,
Regards
You need the cn1-binaries project and need to make sure the paths within the JavaSE project lead to valid locations within that project.
E.g. GaussianFilter is defined within Filters.jar that resides in that project.
I have hired a developer to fix some bugs on my site built on CakePHP framework, but when uploaded the changes he made i got an error:
"Parse error: syntax error, unexpected T_STRING in...."
The strange thing is that the file works OK on the demo, but when try to upload file to the main site the error appears. Can you please have a look at the code and tell me where is that error. Here is the uploaded file: http://textuploader.com/xhok
line 41 $this->ListingProperty->initialize(&$controller);
uses call time pass-by-reference removed in php 5.4
line 49 $this->CommonFunctions->initialize($controller);
has the same issue
see PHP 5.4 Call-time pass-by-reference - Easy fix available?
otherwise the file has no syntactic problems on php 5.5
>php -l a.php
No syntax errors detected in a.php
I managed to fix this issue.The problem was in the FTP program (Filezilla). Forsome reason Filezilla was uploading the files as ASCII and that makes a huge error in some PHP files. I have fixed the issue by changing the upload method as Binary. Here is how to change it:
Edit > Settings > Transfers > File Types > select Binary
I am trying to load mod_mem_cache.so in SUSE Linux Enterprise Server 11, by doing
LoadModule memcache /path/to/mem_cache.so.
But I got this:
httpd2: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 43 of /etc/apache2/sysconfig.d/loadmodule.conf: Can't locate API module structure `memcache' in file /usr/lib/php5/extensions/memcache.so: /usr/lib/php5/extensions/memcache.so: undefined symbol: memcache
This memcached is installed using Zypper, through our repository.
How can I fix this?
Memcache is not a Apache extension, it is a PHP one. You will need to edit your PHP configuration to include the line:
extension memcache.so
From the looks of that error message, the extension is already in the default extensions directory, but if not, alter the extension_dir setting to read:
extension_dir = "/usr/lib/php5/extensions"
Then restart Apache, and check your PHPinfo.
Every time I uninstall a DotNetNuke module and check the box to remove files, it completely kills my site.
I'm running IIS7 on the x86 Windows 7 beta, and have had this problem with both 4.8.4 and 4.9.2. When the error happens, if I replace all of the DLL files in the bin folder, the site comes back to life.
Does anyone know of a workaround for this?
The error I get is as follows...
Compiler Error Message: BC30002: Type 'IClientAPICallbackEventHandler' is not defined.
Source Error:
Line 41: ''' -----------------------------------------------------------------------------
Line 42: Partial Class DefaultPage
Line 43: Inherits DotNetNuke.Framework.CDefault : Implements IClientAPICallbackEventHandler
Line 44:
Line 45: #Region "Properties"
Source File: C:\inetpub\wwwroot\Default.aspx.vb Line: 43
EDIT:
The files that get removed from the /bin folder during the uninstall of a module are:
DotNetNuke.Services.Syndication.dll
DotNetNuke.WebControls.dll
DotNetNuke.WebUtility.dll
SharpZipLib.dll
I'm not directly referencing any of those files - so am guessing that it must be a bug of some sort in the uninstall process. These files get removed during the uninstall only if my "Copy Local" setting is "True" on my DotNetNuke.dll reference.
Are you maybe compiling against a different version of one of the DNN dlls, and have that reference set to Copy Local?