我正在运行Typo3 7.6并且在我的网站上愚蠢地尝试过时扩展。我收到一个错误,试图卸载扩展程序,这只是让事情变得更糟。现在整个系统从后面和前面崩溃,出现这个错误:
解析错误:语法错误,意外'='in /html/typo3/typo3_src-7.6.10/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php 在第1654行
不确定我希望我对此信息做些什么。
这是我在第1654行 ExtensionManagementUtility.php中的代码:
use strict;
use warnings 'all';
use feature 'say';
use File::Spec::Functions qw/ splitdir catdir /;
my $file = 'files.txt';
open my $fh, '<', $file or die qq{Unable to open "$file" for input: $!};
my @results;
while ( <$fh> ) {
next unless /\S/;
chomp;
my @path = splitdir($_);
shift @path while @path > 2;
push @results, catdir @path;
}
print "$_\n" for @results;
如何摆脱这种混乱?
答案 0 :(得分:2)
如果您只想恢复安装,则需要停用该新扩展程序。
您可以尝试在安装工具中执行此操作(只需调用your-domain.tld / typo3 / install /):在区域&#34;重要操作&#34;您可以找到选项检查已损坏的附加信息
或您手动执行:修改typo3conf/PackageStates.php
,搜索该扩展程序并将状态从active
更改为inactive
。然后清除所有缓存!
之后你可以删除扩展名。
答案 1 :(得分:0)
似乎此问题来自其中一个包含的文件,即您的某个扩展程序的配置。我不明白PHP为什么不显示实际的文件名,但是好吧......让我们尝试解决它:
要获取文件名,请在load("xy.rdata")
# Convert matrix to data frame
xy = as.data.frame(xy)
names(xy) = c("x","y")
# Get range of xy$x; then get xy$y values at min and max xy$x values
x.rng = c(min(xy$x), max(xy$x))
yofx = xy$y[which(xy$x %in% x)]
## Separate points into "upper" and "lower" halves using (x,y) values we just calculated
# Slope of dividing line
slope=diff(yofx)/diff(x.rng)
# Add "dividing line" to data frame
xy = cbind(xy, y.mid = slope*(xy$x - xy$x[1]) + yofx[1])
# Group points into "upper" and "lower" using the dividing line we just created
xy$group = ifelse(xy$y > xy$y.mid, "Upper", "Lower")
## Order the points by xy$group and then by xy$x
xy = xy[order(xy$group, xy$x), ]
## Reverse order of "Upper" points
# Reset rownames
rownames(xy) = 1:nrow(xy)
# Get range of rownames for "upper" group
rn = as.numeric(range(rownames(xy[xy$group=="Upper",])))
# Reverse order of "Upper" points
xy = xy[c(1:(rn[1]-1), rn[2]:rn[1]), ]
## Add copy of first point to end of data frame to close the polygon
xy = rbind(xy, xy[1,])
plot(xy$x, xy$y, type="l", lwd=0.8, las=1)
# Add points if you wish
#points(xy[,1:2],col=ifelse(xy$group=="Upper","red","blue"),pch=16,cex=0.5)
之前插入一行以输出它:
require…
重新加载后,您应该看到一个扩展键和文件名列表,最后一个是导致问题的那个。