In one of our extensions we have this snippet:
/**
* action main
*
* #return void
* #dontverifyrequesthash
*/
TYPO3 Version 8 with PHP 7.1 works.
TYPO3 Version 9 with PHP 7.2 we get this error:
[Semantical Error] The annotation "#dontverifyrequesthash" in method X\Y\Controller\Z::mainAction() was never imported. Did you maybe forget to add a "use" statement for this annotation?
can someone help please?
The annotation #dontverifyrequesthash died before TYPO3 version 6.2, so you can remove it.
Related
I’m trying to update a TYPO3 site from version 9.5.30 to version 10.0.0.
I have the following error:
(1/1) #1549446998 LogicException TYPO3\CMS\Core\Cache\CacheManager can
not be injected/instantiated during ext_localconf.php loading. Use
lazy loading instead.
Do you really update to TYPO3 10.0.0? You can and should update directly to version 10.4 (10.4.20 as of today).
According to the TYPO3 bug tracker (#88843, #88975), there were problems which have been fixed already a long time ago.
I am trying to create a custom API based on an API tutorial on https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Startup_Project_Archetype
Tools: OpenDaylight Lithium, Eclipse, Maven 3.3.9
I am able to compile the folder in api but not in impl (FlowImpl.java).
This is the error message:
[INFO] Starting audit...
/home/shaoxu/Desktop/distribution-karaf-0.3.3-Lithium-SR3/flow/impl/src/main/java/org/opendaylight/flow/impl/FlowImpl.java:1: Line does not match expected header line of '^/[*]+$'.
Audit done.
[INFO] There is 1 error reported by Checkstyle 6.2 with check-license.xml ruleset.
[ERROR] src/main/java/org/opendaylight/flow/impl/FlowImpl.java[1] (header) RegexpHeader: Line does not match expected header line of '^/[*]+$'.
There is no error message in Eclipse.
This is the source code:
package org.opendaylight.flow.impl;
import java.util.concurrent.Future;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.flow.rev150105.FlowService;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.flow.rev150105.FlowPathInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.flow.rev150105.FlowPathOutput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.flow.rev150105.FlowPathOutputBuilder;
import org.opendaylight.yangtools.yang.common.RpcResult;
import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
public class FlowImpl implements FlowService {
#Override
public Future<RpcResult<FlowPathOutput>> flowPath(FlowPathInput input) {
FlowPathOutputBuilder flowBuilder = new FlowPathOutputBuilder();
flowBuilder.setPath(input.getNodes());
return RpcResultBuilder.success(flowBuilder.build()).buildFuture();
}
}
What is the error?
The error you're getting is caused by an enforced format for a copyright/license header at the start of every file in OpenDaylight:
/*
* Copyright (c) 2016 ... and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
If you used the archetype, this header should have been generated for you. There are two ways of fixing the problem: either add the license header as above (if you're happy with the license), or disable the license check — if you want to do the latter, edit your question and add the POM you're using for impl so I can explain how to go about it.
You mention you're using Lithium, I'd strongly recommend switching to Beryllium or even Boron for new development. The wiki pages are currently mostly up-to-date for Beryllium.
In my Beryllium, I usually skip checkstyle tests when running my build. Add -Dcheckstyle.skip=true parameter to your command to do the maven build.
I have installed Bugzilla 5.0.2 and tried accessing it through REST Api but I'm not able to access it.
I'm getting the following message.
"The REST Interface feature is not available in this Bugzilla."
I tried to access
http://bugzillaserver/bugzilla/rest.cgi from the browser
But that also displays the same message.
The issue was with optional perl modules.
Installed optional perl modules, now it is working fine.
The main module that cures this problem is JSON::RPC (any) for the JSON-RPC interface
Same issue solved by
all SOAP,RCP related perl modules
and
ppm install Test-Taint
Perl version use ActivePerl-5.24.3.2404
I already had JSON::RPC installed; the missing bit was Test::Taint, installed with cpanm Test::Taint.
It is also reported by checksetup.pl in this box:
***********************************************************************
* OPTIONAL MODULES *
***********************************************************************
* Certain Perl modules are not required by Bugzilla, but by *
* installing the latest version you gain access to additional *
* features. *
* *
* The optional modules you do not have installed are listed below, *
* with the name of the feature they enable. Below that table are the *
* commands to install each module. *
***********************************************************************
* MODULE NAME * ENABLES FEATURE(S) *
***********************************************************************
* ... *
* Test-Taint * JSON-RPC Interface, XML-RPC Interface, REST Interface *
***********************************************************************
For example, the following works:
/** #brief Some info
#todo A todo task
#author Me
*/
But this does not:
/** \brief Some info
\todo A todo task
\author Me
*/
Am I missing any Doxyfile config? Thank you!
It seems that, at the end, it was just a matter of Doxygen versions, as I was using a Doxyfile version 1.7.2 and my Doxygen version is 1.8.6. After updating the doxyfile to my Doxygen version it worked.
I got error in Fluidpages on frontend:
TYPO3 v6.2.11
Flux v7.2.0
Fluidpages v3.2.0
vhs v2.3.1
As before I have setup many projects with Flux and Fluidpages but in latest version I am in stuck.
The problem is probably that you use old class names (the ones with underscores). EXT:flux removed support of old class names in version 7.2.0 (see changelog), same for EXT:fluidpages.
To fix this, just replace your occurrence of Tx_Fluidpages_Controller_PageController with its new name: \FluidTYPO3\Fluidpages\Controller\PageController.
Of course you need to do the same thing for all classes in PHP as well as in all namespace declarations in your fluid templates.
Hey Ghanshaym,
5 >
5 = USER
5.userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
5.extensionName = Fluidpages
5.vendorName = FluidTYPO3
5.pluginName = Page
10 >
May be helps