I want to offload my server and move the uploads-webpc folder to a Cloudflare R2 cloud server.
I’ve experience in creating and customizing plugins. I was just wondering if it’s possible to customize your plugin that way. If you guys have any hooks that I can use to accomplish this task?
I’d like to do it even if it involves editing the plugin files directly. I’d manage to update it somehow in the future.
Any help would be much appreciated. Thank you!
]]>First thanks a lot for your plugin I use and recommend around me.
Recently I changed the PHP version to 8.0 and since then Robin Image Optimizer can’t optimize the images.
The error is : “Error: Failed to get optimized image from remote server”
What’s your advice?
—-
Salut
D’abord merci beaucoup pour ton plugin que j’utilise et recommande autour de moi.
J’ai récemment changé la version PHP pour du 8.0, et depuis, l’extension Robin Image Optimizer ne parvient plus à réduire le poids des images.
L’erreur renvoyée est : “Error: Failed to get optimized image from remote server”
Quel est ton conseil ?
]]>If this is not a feature, maybe it can be coded, maybe there is a hook that serves this purpose and will allow me to link to that remote server by FTP ?
I hope you find a minute to give me an answer,
Thanks in advance,
Best regards,
Renan Savidan.
I have tested this plugin and I could get everything pretty much working, and I have decided to use it in the project I’m working on at the moment.
But I got a minor issue with it. The “Enable Excerpts” works great in my local server while I’m testing and developing the site, but when I put the site live in the remote server, the “Enable Excerpts’ simply doesnt work anymore. I disabled all possible javascript codes and even changed the version of the wordpress jQuery to know where the problem is, but I still couldn’t find the origin of the problem. I really can’t understand why the “Enable Excerpts” refuses to work as it did on my local srerver.
I also disabled the SSL certfificate to check whether that was the problem. But the “Enable Excerpts” function doesn’t work at all. It only shows long reviews entirely whithout the “show more…” button.
Has anyone experienced any issue like this one with the plugin?
Thank you!
]]>I noticed a change in the expected URL:
https://www.mysite.com/documents/2019/02/myfile.pdf
to:
https://www.mysite.com/documents/2019/02/myfile.pdf/
Might this be the problem? The problem occurs also with file uploaded long time ago.
I checked if the same happens with the core Media manager and then the url doesn’t end with a /. The file also doesn’t get corrupted..
If I try to force download the file without the end / through the Free Download Manager App on my Macbook it says “Remote server closed connection.”
I also tried going back to version 3.2.1, but unfortunately the same problem..
I hope a quick fix is possible! Thanks in advance.
]]>iam using the plugin php insert
the code i am using
$sql = "SELECT * FROM Medlemar Where Medl_nr= . $current_user->Medl_nr% .";
Medl_nr is a custom field in wp.users table i created
and with $current_user->Medl_nr is giving me the value if i run the code seperat.
but running the query then i am only getting 0 result.
soo it seem like the query can′t get the current_user data (that should be a number and in this case it is number 25)
soo am i doing something wrong or am i missing something
all the code i am using
[insert_php]
$servername = "db host";
$username = "user";
$password = "pass";
$dbname = "db_1";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "SELECT * FROM Medlemar Where Medl_nr= . $current_user->Medl_nr% .";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "Medl_nr: " . $row['Medl_nr']. " - Namn: " . $row["namn"]. " " . $row["efternamn"]. "<br>";;
}
} else {
echo "0 results";
}
$conn->close();
[/insert_php]
the wp db and the db1 i am trying to get data from is on diffrent servers.
]]>So I thought the next best thing would be to edit it again on the local machine and upload the appropriate files to the server.
That’s my problem. How do I know which files to upload or do I have to upload the entire site again.
Any ideas on the efficient way of doing this would be great.
Thanks
]]>I built a WP site locally on my computer and I am now trying to upload it to my website using either cpanel or FTP (filezilla). FileZilla is not letting me login properly and cpanel is breaking my heart. I have been attempting to drag and drop every single wordpress file from my computer to cpanel, and I think I have most of them up there, but I do not even know where they are or what to do with them.
I have no experience with taking a locally built site and uploading it to a remote server and I so desperately need to be able to do this.
Somebody help me, please.
– Jaclyn
The main problam is that if I try to send request from remote server to the .php file that uses native WordPress functions – the WP ignores this request and the script does not receive any data.
The solution which I found is the next:
I receive the data (from remote server) by using .php file that saves this data in the .txt file. After that, I invoke .php file that use native WP functions and save data from this file to the Data Base. I understand that this is like a cheat the WP security.
But I need to know: is here a way to receive data from remote server and directly save to the Data Base using native WP classes for working with Data Base, without using extra file like that .txt file.
Also, using native WP function with DataBase makes the work more safe.
I already used the “Plugin API/Action Reference/admin post (action)”. But it allows to receive data as logged site admin (like from my own admin page). I need to receive data from remote server by the plugin without admin access, and I can take the risk on myself, but I want to use the native WP functions to receive that request and work with DataBase.
Is it possible?
]]>Thanks for your help.
]]>