2:24 pm
April 9, 2024
Hi dev, so I got into issue. I need to translate full articles using GPT4. But articles are too big to get translated in one assignment. So solution would be automated article splitting based on paragraph amount (since word limitation would cut articles in random places, losing their context). After article is splitted into 2-3 parts, now it can be submited into GPT4 for translation. And after all parts are translated, they are back into one article and posted.
How can I do it in CyberSEO?
Yes, this method really works and some CyberSEO Pro users do it using Login to see this link. The problem is that this method is not a universal solution, because not every HTML document can be split into paragraphs. That's why this can't be implemented as a standard option. But again, as a custom solution for some special cases, it can be done via a simple PHP snippet.
3:16 pm
April 9, 2024
3:45 pm
April 9, 2024
9:02 am
April 9, 2024
Thanks for suggestion. I prefer GPT4 models since quality is better.
Script is working, only issue I have is that Execution time is not enough. Browser is loading first 4 minutes and then stops loading and just shows this: Syndicating Login to see this link...
I tried making execution time on server 1800 and in plugin, but does not help.
Syndicator LOG show it is executing till it creates image as it should. But then nothing happens - no posting part.
What could be issue?
The value you set in CyberSEO Pro may not work if your maximum execution time is limited by the server config. Here is a quote from Login to see this link:
The default PHP execution time limit at your server is usually set to 30 seconds only. On the other hand, some content sources like Amazon product search pages, Facebook pages, Instagram pages or those feeds that use AI services, require sufficiently more time to process. If the default time limit exceeded, the server aborts the CyberSEO Pro execution and the contingent just not get added. Use this “Max execution time” to set the PHP execution time necessary to process all your feeds.
⚠️ When working with PHP, it’s important to understand that setting the maximum execution time of a script through the script itself may not always be effective, especially in shared hosting environments. Many shared hosting providers enforce their own limits on script execution time, which can override any settings specified within your PHP code. Consequently, your attempts to extend the execution time through the script may not yield the expected results.
Moreover, even if there aren’t explicit restrictions from the hosting provider, you might encounter server-level configuration requirements. To effectively change the execution time limit, you often need to manually edit the ‘php.ini’ file, which is the central configuration file for PHP. In this file, look for the line that reads max_execution_time = 30. The number here represents the time limit in seconds. You can adjust this number to increase the execution time limit. For example, setting it to max_execution_time = 300 will allow scripts to run for up to 300 seconds.
However, access to the “php.ini” file is not always available, particularly on shared hosting platforms, which means you might not be able to make this change depending on your hosting situation. It’s important to be aware of the limitations of your hosting environment when trying to adjust PHP execution time settings.
9:59 am
April 9, 2024
I tried to contact hosting , changed execution time to 30 minutes, and even hosting tried to change it to 30 minutes. But still same thing. Take a look. It just stops.
Login to see the quote
Cracks at the Corners of the Mouth: Those painful cracks that look like line segments could actually be signs of iron deficiency anemia.
10:24 am
April 9, 2024
10:25 am
April 9, 2024
mediasf1231 said
If you have a chance to test run this one with PHP code you have provided, please try.
Feed:
Login to see this link
The actual feed URL has no effect on the result. In my case, all scripts run on dedicated servers, so there is no time limit that can't be set there - 10 minutes, 30 minutes, or even 30 days. The script will be executed anyway.
I would suggest you to check your server log. If there was an error in CyberSEO Pro, it will be shown there. If the script was stopped by the server when the execution time was exceeded, it will be shown there. Once you see the actual error message, we can start looking for ways to fix the problem.
Alternatively, you can simply reduce the total number of GPT requests needed to generate an article to say 2-3 and check. If the article is generated, then the problem is definitely caused by the max execution time limit.
10:37 am
April 9, 2024
CyberSEO said
I would suggest you to check your server log. If there was an error in CyberSEO Pro, it will be shown there. If the script was stopped by the server when the execution time was exceeded, it will be shown there. Once you see the actual error message, we can start looking for ways to fix the problem.Alternatively, you can simply reduce the total number of GPT requests needed to generate an article to say 2-3 and check. If the article is generated, then the problem is definitely caused by the max execution time limit.
Great suggestion, Thank You! I will.
11:50 am
April 9, 2024
CyberSEO said
As mentioned above, GPT-3.5 Turbo takes much less time to process your requests than GPT-4 Turbo. Consider using a faster, less expensive model instead. GPT-3.5 Turbo should work properly with Spanish.
Ok seems like PHP got successfully executed. Though for some reason it stopped after saving image. This time it executed almost 8 minutes. Do you think its still problem with execution time?
Login to see the quote
P.S. image got saved and I can see it on my server.
The server may run out of time while saving the image. Since it also generates thumbnails and (depending on your settings) may add the image to your media library, the process also takes time.
This also can be a problem with the Login to see this link
The link above has recommendations for solving this problem. In some cases, even switching your PHP mode from FastCGI to CGI may help, since it's a server-related issue.
Alternatively, I would suggest disabling this setting (if enabled): Login to see this link, because it uses getimagesize() to determine the size of the image.
Also note that getimagesize() uses a lot of your server's memory for it's execution because it loads the image into your server's memory in raw (uncompressed) format. So make sure your PHP processes have enough dedicated RAM.
12:59 pm
April 9, 2024
CyberSEO said
The server may run out of time while saving the image. Since it also generates thumbnails and (depending on your settings) may add the image to your media library, the process also takes time.This also can be a problem with the Login to see this link
The link above has recommendations for solving this problem. In some cases, even switching your PHP mode from FastCGI to CGI may help, since it's a server-related issue.
Alternatively, I would suggest disabling this setting (if enabled): Login to see this link, because it uses getimagesize() to determine the size of the image.
Also note that getimagesize() uses a lot of your server's memory for it's execution because it loads the image into your server's memory in raw (uncompressed) format. So make sure your PHP processes have enough dedicated RAM.
Issue with execution time resolved using htaccess.
Login to see the code
Post got posted after this.
Now I have another issue. :D
Login to see the code
Most Users Ever Online: 541
Currently Online:
10 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 84
s.baryshev.aoasp: 68
Freedom: 61
Pandermos: 54
MediFormatica: 49
B8europe: 48
Member Stats:
Guest Posters: 337
Members: 2819
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1627
Posts: 8280
Newest Members:
sneakpeachagency, bkc.tessier, igor.buzaev, jeremyboucher, lthompson2709, MACAdministrators: CyberSEO: 3913