modx-evolution

ModX Evo: PHP error in document.parser.class.inc.php

ε祈祈猫儿з 提交于 2020-01-16 12:36:08
问题 So my Evo site stopped working the other day - just got a 500 error. I got my host to check the logs and found this: [error] PHP Fatal error: Cannot redeclare insert_metka() (previously declared in /home/mysite/public_html/manager/includes/document.parser.class.inc.php(790) : eval()'d code:2) in /home/mysite/public_html/manager/includes/document.parser.class.inc.php(790) : eval()'d code on line 12 I have tired commenting out the offending line and removing the entire file to no avail. Does

How would WP plugins need to be recoded in order to work on Modx?

两盒软妹~` 提交于 2019-12-12 03:47:21
问题 Lets say, I want an affiliate plugin that I bought for WP to work on Modx. What are the procedures to follow? Yes, you can assume that all the plugins I bought use php, javascript, and jquery. 回答1: You need to refactoring your plugin to modx snippets and chunks - http://www.cmslesstraveled.com/index/tutorials/refactoring-a-simple-php-application-for-modx.html 回答2: You can use internal Wordpress functions by including this file include_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php' ); You can

MODx :: Get Session ID set by MODx to use in Module

余生颓废 提交于 2019-12-12 01:08:49
问题 I have an issue where I need to pass the Session ID to a module, "SMF Connector". The problem stems from the fact that for some reason the SMF Forum (held in a sub-folder) is using a different Session set. I combatted the problem by hard coding the Session ID from MODx, but of course this then failed the next time I loaded up the site a day later. I have tried using global $modx; $SID = $modx->documentObject[SID]; session_id($SID); session_start(); But to no avail, infact it was stopping the