retetecugust
Forum Replies Created
-
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0This is the third time I am telling you, the path is trying to require is correct, it is /wpcom-19758243/wp-admin/admin-ajax.php. I just do not want to write that root file, and I have asked you to do the same, but you still write it all over the place. The path it takes into the require instruction is correct ! But inside require something crashes, probably some file permissions and stuff, or firewall, I don’t really know. The message it is writing to output does not contain that folder, probably for protection purposes, but it does require the right path.
I don’t think there is something you can do, unless you try to load the files for editing in another way, maybe how you did it in previous versions.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0I don’t know what to tell you, but one of the support persons from there said that this plugin is trying to access the file-tree and this is not permitted. This file is not accessible with the domain name either.
But the way you are using it seems not to be a best practice, as far as I searched, I found only examples and uses with a js file and wp_localize_script, none with trying to include that file, but only using it for ajax calls.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0Exactly, that is the path it builds. At the end the path is what you would expect, as written above. As I said it builds it properly, but when trying to include it, it crashes. Probably that directory is not allowed to be used like that.
Please delete all the mentions of that directory here in this discussion.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0Hi,
It builds the file path properly, I saw it when I commented the require instruction. But when using require it crashes. You cannot access files like that on this server, they don’t allow this.
I assume you used another way in previous versions which works, so maybe you can find a way around it.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0I tried talking to them, but they insist this cannot be done because it requires access to the directory path and that is not available. So can’t you just do how it was done before, in previous versions ?
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0Unfortunately, I cannot see the logs so that is not useful :(.
Can’t you use other functions for this ? like plugin_dir_path () or maybe admin_url(‘admin-ajax.php’); Something that could get the whole path for you in a sole instance, without calling so many times the dirname.
- This reply was modified 6 years, 12 months ago by retetecugust.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0Hi,
Can you use the method wp_localize_script() instead of that dirname you are using ? I saw this example here https://premium.wpmudev.org/blog/using-ajax-with-wordpress.
What kind of debugging you need ? I don’t have confidence issues, the problems would be the modalities of debug I am allowed to use on this server.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0Thank you, yes I know. I have been doing just that, but he has to fix this issue once and for all.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0Hi,
I asked them to look into the logs, this is the error :
PHP Fatal error: require(): Failed opening required ‘/wp-admin/admin-ajax.php’ (include_path=’/:.’) in /wpcom-19758243/wp-content/plugins/aceide/src/Ajax.php on line 23
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0Unfortunately no. I tried, but the debug is not set to true, and I do not have access to the config file to set it.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0The file Ajax.php is there in the file tree, I can see it. Maybe it does not like its name ??
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0Hi,
I put some breakpoints on loading resources and I see it tries to load that file and fails. It tries to do this in the load-editor.js at these lines :
var phpMode = require(“ace/mode/php”).Mode;
editor.getSession().setMode(new phpMode());//START AUTOCOMPLETE
//create the autocomplete dropdown
var ac = document.createElement(‘select’);And I see this error after it does that function :
phpMode: function(e)
arguments: TypeError: ‘arguments’, ‘callee’, and ‘caller’ cannot be accessed in this context.
caller: TypeError: ‘arguments’, ‘callee’, and ‘caller’ cannot be accessed in this context.
- This reply was modified 7 years ago by retetecugust.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0It seems like it’s an error in or with the file and he can’t get by it.
- This reply was modified 7 years ago by retetecugust.
Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0In Resources when I open the ajax.php. It confirms the 500 Error and this is written,
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8″>
<title>500 Internal Server Error</title>
<meta name=”description” content=””>
<meta name=”author” content=””><style>
body {
background-color: #f8f8f8;
font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif;
color: #333;
padding-top: 20px;
}
div {
display: block;
}
.container {
width: 1100px;
padding-top: 50px;
margin-left: auto;
margin-right: auto;
}
.error-msg, .support-msg {
text-align: center;
}
.error-msg {
margin-bottom: 40px;
}
.error-msg h1 {
font-size: 52px;
display: block;
margin: 0px;
}
.error-msg p {
font-size: 20px;
display: block;
margin: 10px 0;
}
.support-msg p {
font-size: 14px;
color: #888;
}
</style>
</head><body>
<div class=”container”>
<div class=”error-msg”>
<h1>500 Internal Server Error</h1>
<p>An error occurred while processing this request.</p>
</div>
<div class=”support-msg”>
<p>Website owner? Check your code and/or debug log. If you need assistance, contact support.</p>
</div>
</div>
</body>
</html>Forum: Plugins
In reply to: [AceIDE] Plugin not working after update to 6.0If I click on a regular script file like the aceide/src/js/load-editor.js it opens in a browser page, no problems in seeing the source.