Comments (7)
Could you see what was causing the error 500? Maybe this is visible in the server logs. I can't reproduce that here.
For the frontend issue: Which errors were shown in the browser console? If the emo javascript file is not found, the decoding does not work and this could have impact on other javascripts.
from emo.
I'm sorry but I don't have access to proper log files. I migrated the installations to shared servers (Strato). I can't uninstall Emo either on the source server nor the target server without breaking the sites. With other browsers than Chrome I get just a blank white browser window. Chrome at least tells me that it is a 500 error. This happens with several instances of MODX when I uninstall Emo. The sites just break. Reinstalling Emo fixes it. But moving to another server breaks other JavaScript, too. This includes jQuery and also vanilla stuff. Then only Emo works. It is not that any files are not loaded. Firebug or Chrome DevTools don't claim anything is missing.
from emo.
Could you deactivate the emo plugin before deinstalling the package? But I don't see a reason why deinstalling the package would not remove the plugin. Have you cleaned the cache after uninstalling the package?
If the other scripts don't work anymore, there should be a javascript error in the console. The plugin just adds some javascript to the document content.
from emo.
Yes I did clean MODX cache completely even twice: Before and after deactivating Emo. When I deactivate emo (without deleting the package) the site doesn't work any more: When I reload the site in the browser there is no entries at all in Chrome DevTools console, because there is no site which to log, just the error 500. MODX error log shows this (domain name replaced by "domainname"):
[2020-05-17 06:02:15] (ERROR in xPDO::getService @ /var/www/vhosts/domainname.org/httpdocs/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-05-17 06:02:15] (ERROR in modRestCurlClient::__construct @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-05-17 06:02:17] (ERROR in xPDO::getService @ /var/www/vhosts/domainname.org/httpdocs/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-05-17 06:02:17] (ERROR in modRestCurlClient::__construct @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-05-17 06:02:17] (ERROR in xPDO::getService @ /var/www/vhosts/domainname.org/httpdocs/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-05-17 06:02:17] (ERROR in modRestCurlClient::__construct @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-05-17 06:02:20] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestclient.class.php : 240) PHP warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found
[2020-05-17 06:02:20] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestclient.class.php : 240) PHP warning: simplexml_load_string(): {"status":500,"code":2,"message":"DOMDocument::createTextNode() expects paramete
[2020-05-17 06:02:20] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestclient.class.php : 240) PHP warning: simplexml_load_string(): ^
[2020-05-17 06:02:20] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestclient.class.php : 245) Could not connect to provider at: https://rest.modx.com/extras/
[2020-05-17 06:02:29] (ERROR in resource 13 @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/modparser.class.php : 1373) Bad link tag [[~]]
encountered
[2020-05-17 06:02:29] (ERROR in resource 13 @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/modparser.class.php : 1373) Bad link tag [[~]]
encountered
[2020-05-17 06:02:29] (ERROR in resource 13 @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/modparser.class.php : 1373) Bad link tag [[~]]
encountered
[2020-05-17 06:02:29] (ERROR in resource 13 @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/modparser.class.php : 1373) Bad link tag [[~]]
encountered
[2020-05-17 06:03:23] (ERROR in xPDO::getService @ /var/www/vhosts/domainname.org/httpdocs/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-05-17 06:03:23] (ERROR in modRestCurlClient::__construct @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-05-17 06:03:27] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestclient.class.php : 240) PHP warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found
[2020-05-17 06:03:27] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestclient.class.php : 240) PHP warning: simplexml_load_string(): {"status":500,"code":2,"message":"DOMDocument::createTextNode() expects paramete
[2020-05-17 06:03:27] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestclient.class.php : 240) PHP warning: simplexml_load_string(): ^
[2020-05-17 06:03:27] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/model/modx/rest/modrestclient.class.php : 245) Could not connect to provider at: https://rest.modx.com/extras/
[2020-05-17 06:03:29] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/xpdo/xpdo.class.php : 644) Could not load class: Emo from emo.
[2020-05-17 06:03:29] (ERROR @ /var/www/vhosts/domainname.org/httpdocs/core/xpdo/xpdo.class.php : 1247) Problem getting service emo, instance of class Emo, from path /var/www/vhosts/domainname.org/httpdocs/core/components/emo/model/emo/
I have 4 different MODX sites on that server which I want to move to another hoster. I use Emo on all 4.
from emo.
Do you have a duplicated and renamed emo plugins in your installation? Otherwise the backend issue cannot happen. If you want, I could look into your backend (my contact could be found in my profile).
Since the loaded javascripts are cached in the resource, the frontend issue could happen. But after clearing the resource cache, this issue should be away.
from emo.
Yes, that makes sense. I'll contact you soon. Thanks for the quick reaction and help.
from emo.
During an uninstall, the previous version was installed, causing this issue.
from emo.
Related Issues (12)
- JS File Request optional HOT 3
- Not compatible with HTML2Minify HOT 2
- Double Icons HOT 1
- Plain text email addresses in output aren't obfuscated HOT 2
- Usage with strict content security policy HOT 2
- Issue with UTF-8 characters. HOT 1
- Passing null deprecated (PHP 8.1) HOT 1
- Obfuscated plain-text-mail-addresses HOT 1
- Google map links HOT 3
- Missing files in installation via MODX Package Management HOT 4
- Does not work with MODX 2.7.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emo.