wordpress 页面 return 500
Page with wordpress return 500
我正在将 PHP 文件解析到另一个 wordpress,结果显示:
Font from origin 'https://www.myweb.org' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.ayudaenaccion.org.pe' is therefore not allowed access. The response had HTTP status code 500.
而应该是文件的 php 有下一个 php 代码:
<?php
/*
Template Name: WEB - NameFatherPage - NamePage
*/
header("Access-Control-Allow-Origin: *");
?>
我搜索了一个解决方案,在另一个地方人们说在 wp-config.php 中我必须将 define( 'force_SSL', true );
更改为 false
。但是我的站点是一个多站点,我只有一个 wp-config.php。
如何解决问题?
已解决:
模板 (plantilla) 为空,wordpress 无法加载页面
我正在将 PHP 文件解析到另一个 wordpress,结果显示:
Font from origin 'https://www.myweb.org' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.ayudaenaccion.org.pe' is therefore not allowed access. The response had HTTP status code 500.
而应该是文件的 php 有下一个 php 代码:
<?php
/*
Template Name: WEB - NameFatherPage - NamePage
*/
header("Access-Control-Allow-Origin: *");
?>
我搜索了一个解决方案,在另一个地方人们说在 wp-config.php 中我必须将 define( 'force_SSL', true );
更改为 false
。但是我的站点是一个多站点,我只有一个 wp-config.php。
如何解决问题?
已解决:
模板 (plantilla) 为空,wordpress 无法加载页面