Forum in maintenance, we will back soon 🙂
Notifications
Clear all
Search result for: oops something went wrong
# | Post Title | Result Info | Date | User | Forum |
RE: Create Free AI Tools With WordPress and Gemini in 3 Minutes | 11 Relevance | 6 months ago | ndam | Online Tools Development | |
oops! something went wrong. Please try again. | |||||
RE: AI Tools With WordPress doesn't work for me | 11 Relevance | 6 months ago | Osama Raja | WordPress | |
@ssadvisor i did post this code in the code snippet plug-in, but it is still not working. It shows a error, which says (Oops! something went wrong. Please try again.) | |||||
RE: Problem running Youtube transscript form Hasans newsletter | 8 Relevance | 7 months ago | stavros | Prompt Engineering | |
"Sir, I have already updated the environment." "I have been trying to resolve an issue for the past 4 days and seeking help if possible. As we are supposed to be here to help each other, I would appreciate your assistance. I have tried repeating the same steps multiple times. Firstly, I ran the command to upgrade the environment from the terminal while having the code loaded in a folder. I have done this step about 30 times. Then, I ran the program after inserting the API and YouTube URL. I pressed "run python" from the command of the program (not from the terminal), but nothing happened. I have attached a screenshot again to show you that something is wrong. To start a new file, I select the Python file option and add the text file code. Then, I add my API key and YouTube URL. Next, I run "pip install youtube-transcript-api" from the terminal to update the application environment. Before running the code, I must save it first. However, when I click on the "run Python file" button, I don't see any transcript in the terminal. I have been asking for help for many days and I'm wondering if there's something wrong with my setup. I am asking for your help and suggestions on what else I can do to resolve this issue. I feel stuck and need your assistance. Thank you." | |||||
Create Free AI Tools With WordPress and Gemini in 3 Minutes is not working for me | 7 Relevance | 2 weeks ago | Shahzad Khan | WordPress | |
Hi Hassan i am following your video: is not working for me.i did copy the same code of PHP and HTML in my wordpress it is throwing error to me. something went wrong.i am using Gemini api key and and the model is : What i do now? | |||||
Advace Code Hook generator Get Error. Please Help | 7 Relevance | 1 month ago | Enrico Paragas | WordPress | |
Hello Hasan, I am encountering an issue after upgrading the code. The following error message appears: "Uh Oh! something went wrong! Please try again." Could you please assist in resolving this? I have attached the relevant files for your reference. Thank you. Attachment : functions.txt Attachment : script.js Attachment : style.css Attachment : ui.html | |||||
RE: AI Chatbot on WordPress in 5 Minutes doesn't work for me | 7 Relevance | 5 months ago | Tech Biason | WordPress | |
Opps!! something went wrong. And it is also showing offline status rather than online. Please help @admin | |||||
RE: AI Tools How To Get different Json Response other than titles | 7 Relevance | 6 months ago | ndam | Online Tools Development | |
@husein please help me change this api from openai to google i waish to uase the free google api key instead thanks function openai_generate_text() { // Get the topic from the AJAX request $prompt = $_POST['prompt']; // OpenAI API URL and key $api_url = 'https://api.openai.com/v1/chat/completions'; $api_key = 'sk-XXX'; // Replace with your actual OpenAI API key // Headers for the OpenAI API $headers = [ 'Content-Type' => 'application/json', 'Authorization' => 'Bearer ' . $api_key ]; // Body for the OpenAI API $body = [ 'model' => 'gpt-3.5-turbo', 'messages' => [['role' => 'user', 'content' => $prompt]], 'temperature' => 0.7 ]; // Args for the WordPress HTTP API $args = [ 'method' => 'POST', 'headers' => $headers, 'body' => json_encode($body), 'timeout' => 120 ]; // Send the request $response = wp_remote_request($api_url, $args); // Handle the response if (is_wp_error($response)) { $error_message = $response->get_error_message(); wp_send_json_error("Something went wrong: $error_message"); } else { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (json_last_error() !== JSON_ERROR_NONE) { wp_send_json_error('Invalid JSON in API response'); } elseif (!isset($data['choices'])) { wp_send_json_error('API request failed. Response: ' . $body); } else { wp_send_json_success($data); } } // Always die in functions echoing AJAX content wp_die(); } add_action('wp_ajax_openai_generate_text', 'openai_generate_text'); add_action('wp_ajax_nopriv_openai_generate_text', 'openai_generate_text'); | |||||
An error occurred: undefined | 5 Relevance | 11 months ago | Anonymous 6211 | Online Tools Development | |
Hello, some thing wrong with your code I am getting all the time "An error occurred: undefined" Tried changing function name, same results Some thing wrong with ajax its getting 400 (Bad Request) Any ideas?? Best | |||||
RE: Blog Optimization Automation not Wrong | 5 Relevance | 2 days ago | Neha Bhoir | AI Agents Development | |
@cyrus1st Yes, exactly. Showing me the same. | |||||
RE: Blog Optimization Automation not Wrong | 5 Relevance | 2 days ago | cyrus | AI Agents Development | |
I have noticed that my Openai.com Has NOT been charged for operation this task, it seems that the problem is the connection between Make and Openai site , they are not connected. | |||||
RE: Blog Optimization Automation not Wrong | 5 Relevance | 2 days ago | cyrus | AI Agents Development | |
I have the exact same problem with this project. | |||||
Blog Optimization Automation not Wrong | 5 Relevance | 2 days ago | Neha Bhoir | AI Agents Development | |
I successfully connected the Blog Optimization automation tool, and there were no errors during setup. However, when I check the sheet, nothing is being updated, even though I've properly connected everything (the sheet,API, GPT API etc.). Can someone please help me resolve this issue? YouTube Video: Attachment : image.png | |||||
Search Engine search_with_serper_api not pulling in any URLs | 4 Relevance | 2 weeks ago | Bowale Boluwatife Daniel | Online Tools Development | |
Came across Hasan 10 AI tools video and tried out the search_with_serper_api tool for searching the web; It's not pulling in any URLs. Is there something wrong, the code isn't returning any errors and I'm sure I have SimplerLLM installed. What could be the problem? | |||||
RE: AI Tools With WordPress in 5 Minutes not working: string did not match the expected pattern | 7 Relevance | 5 months ago | Film Sound Academy | WordPress | |
I just followed the steps on the website/video. The only thing I changed was the API key For html/java <div id="text-generation-tool"> <input type="text" id="topic" placeholder="Your Topic..."> <button id="generate-button">Generate Story!</button> <div id="result-container" style="display: none;"> <div class="result-wrapper"> <div class="result-content"> <textarea id="result" readonly></textarea> </div> <div class="copy-button-container"> <button id="copy-button">Copy</button> </div> </div> </div> <div id="loading" class="loader" style="display: none;"></div> </div> <style> /* Basic styles for the text generation tool */ #text-generation-tool { width: 100%; max-width: 600px; margin: 0 auto; font-family: Arial, sans-serif; } #topic { width: 100%; padding: 15px; margin-bottom: 20px; font-size: 16px; border-radius: 5px; border: 1px solid #ddd; } #generate-button { display: block; width: 100%; padding: 15px; margin-bottom: 20px; font-size: 16px; border: none; border-radius: 5px; color: #fff; background-color: #3498db; cursor: pointer; transition: background-color 0.3s ease; } #generate-button:hover { background-color: #2980b9; } #result-container { display: none; margin-bottom: 20px; } .result-wrapper { position: relative; overflow: hidden; } .result-content { display: flex; } #result { flex: 1; height: 400px; padding: 15px; font-size: 16px; border-radius: 5px; border: 1px solid #ddd; background-color: #f9f9f9; } .copy-button-container { margin-top: 10px; text-align: right; } #copy-button { padding: 8px 12px; font-size: 14px; border: none; border-radius: 5px; color: #fff; background-color: #3498db; cursor: pointer; transition: background-color 0.3s ease; } #copy-button:hover { background-color: #2980b9; } /* CSS for the loader */ .loader { display: block; margin: 50px auto; border: 16px solid #f3f3f3; /* Light grey */ border-top: 16px solid #3498db; /* Blue */ border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> <script> document.getElementById("generate-button").addEventListener("click", function(e){ e.preventDefault(); var generateButton = document.getElementById("generate-button"); if (generateButton.disabled) { return; // Prevent multiple clicks while content is being generated } generateButton.disabled = true; var topic = document.getElementById('topic').value; var prompt = "Generate a 3 sentence story about " + topic; var loading = document.getElementById('loading'); var result = document.getElementById('result'); var resultC = document.getElementById('result-container'); loading.style.display = 'block'; result.style.display = 'none'; // hide result textarea resultC.style.display = 'none'; var formData = new FormData(); formData.append('action', 'openai_generate_text'); formData.append('prompt', prompt); fetch('/wp-admin/admin-ajax.php', { method: 'POST', body: formData }) .then(response => response.json()) .then(data => { loading.style.display = 'none'; if(data.success) { result.value = data.data.choices[0].message.content; result.style.display = 'block'; // show result textarea resultC.style.display = 'block'; generateButton.disabled = false; } else { result.value = 'An error occurred: ' + data.data; result.style.display = 'block'; // show result textarea resultC.style.display = 'block'; generateButton.disabled = false; } }) .catch(error => { loading.style.display = 'none'; result.value = 'An error occurred: ' + error.message; result.style.display = 'block'; // show result textarea resultC.style.display = 'block'; generateButton.disabled = false; }); }); var copyButton = document.getElementById('copy-button'); copyButton.addEventListener('click', function() { var result = document.getElementById('result'); result.select(); document.execCommand('copy'); alert('Copied to clipboard!'); }); </script> For functions.php function openai_generate_text() { // Get the topic from the AJAX request $prompt = $_POST['prompt']; // OpenAI API URL and key $api_url = 'https://api.openai.com/v1/chat/completions'; $api_key = 'sk-XXX'; // Replace with your actual OpenAI API key // Headers for the OpenAI API $headers = [ 'Content-Type' => 'application/json', 'Authorization' => 'Bearer ' . $api_key ]; // Body for the OpenAI API $body = [ 'model' => 'gpt-3.5-turbo', 'messages' => [['role' => 'user', 'content' => $prompt]], 'temperature' => 0.7 ]; // Args for the WordPress HTTP API $args = [ 'method' => 'POST', 'headers' => $headers, 'body' => json_encode($body), 'timeout' => 120 ]; // Send the request $response = wp_remote_request($api_url, $args); // Handle the response if (is_wp_error($response)) { $error_message = $response->get_error_message(); wp_send_json_error("Something went wrong: $error_message"); } else { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (json_last_error() !== JSON_ERROR_NONE) { wp_send_json_error('Invalid JSON in API response'); } elseif (!isset($data['choices'])) { wp_send_json_error('API request failed. Response: ' . $body); } else { wp_send_json_success($data); } } // Always die in functions echoing AJAX content wp_die(); } add_action('wp_ajax_openai_generate_text', 'openai_generate_text'); add_action('wp_ajax_nopriv_openai_generate_text', 'openai_generate_text'); | |||||
RE: AI Tools How To Get different Json Response other than titles | 7 Relevance | 6 months ago | ndam | Online Tools Development | |
@admin i am using but Google API key how can i point this code to use it thanks function openai_generate_text() { // Get the topic from the AJAX request $prompt = $_POST['prompt']; // OpenAI API URL and key $api_url = 'https://api.openai.com/v1/chat/completions'; $api_key = 'sk-XXX'; // Replace with your actual OpenAI API key // Headers for the OpenAI API $headers = [ 'Content-Type' => 'application/json', 'Authorization' => 'Bearer ' . $api_key ]; // Body for the OpenAI API $body = [ 'model' => 'gpt-3.5-turbo', 'messages' => [['role' => 'user', 'content' => $prompt]], 'temperature' => 0.7 ]; // Args for the WordPress HTTP API $args = [ 'method' => 'POST', 'headers' => $headers, 'body' => json_encode($body), 'timeout' => 120 ]; // Send the request $response = wp_remote_request($api_url, $args); // Handle the response if (is_wp_error($response)) { $error_message = $response->get_error_message(); wp_send_json_error("Something went wrong: $error_message"); } else { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (json_last_error() !== JSON_ERROR_NONE) { wp_send_json_error('Invalid JSON in API response'); } elseif (!isset($data['choices'])) { wp_send_json_error('API request failed. Response: ' . $body); } else { wp_send_json_success($data); } } // Always die in functions echoing AJAX content wp_die(); } add_action('wp_ajax_openai_generate_text', 'openai_generate_text'); add_action('wp_ajax_nopriv_openai_generate_text', 'openai_generate_text'); | |||||
Problem running Youtube transscript form Hasans newsletter | 7 Relevance | 8 months ago | stavros | Prompt Engineering | |
Hi to everyone i could not run the script and I explained. 1. copy the entire code to the clipboard 2. open the visual editor and paste the code 3. in the #inputs field I add my unique API key and paste my YouTube URL ( see a screenshot from the Attachment : transcription.png visual editor ) When I went to the terminal and entered "python app.py", nothing happened (see screenshot). I then clicked the "run" button, but still nothing happened. What could be wrong? Do I need to add something else to the code like import transcript Somewhere? In the terminal's problem tab, I see the message 'Import YouTube transcript API could not be resolved' (see screenshot). Attachment : transcription_2.png I will be pleased if you can help me solve the problem or see the error and how to fix it and run it perfectly. I await your guidance | |||||
RE: Problem running Youtube transscript form Hasans newsletter | 6 Relevance | 7 months ago | stavros | Prompt Engineering | |
Hi first of all thanks for your answer, What I did 1. Run the command pip install youtube-transcript-api in terminal first and I see the message from terminal [notice] A new release of pip is available: 23.2.1 -> 24.0[notice] To update, run python.exe -m pip install --upgrade pip so I run the updated version Attachment : transcription_10.png after I run the new command in the terminal "updated" version I see the following Attachment : transcription_11.png After replacing the API and also my YouTube URL and clicking on the run button, nothing happens in the terminal. I don't understand what went wrong. Please provide me with some help to do it again maybe is my fault I don't know that's why I keep insisting | |||||
RE: Blog Optimization Automation not Wrong | 5 Relevance | 2 days ago | cyrus | AI Agents Development | |
I have added Openai's Organization number as well but still doesn't work but it confirms it's working. The scenario was successfully loaded. 1:28 PM Preparing scenario for running. 1:28 PM Requesting execution. 1:28 PM The request was accepted. Waiting for the server. 1:28 PM The scenario was initialized. 1:28 PM The scenario was finalized. 1:28 PM The scenario run was completed. | |||||
RE: Prompt for Solving Mathematical Equations | 4 Relevance | 4 weeks ago | Husein Aboul Hasan | Prompt Engineering | |
@mathros If you want the LLM to have a high success rate, you'll have to create specific prompts for specific topics in math, not a generic calculator. As much as you improve the prompt if it's generic, it'll always answer incorrectly in some math fields. I tried to do something just for linear algebra; however, some questions gave me wrong answers. So i tried creating prompts for each chapter I'm working on and this helped improve the output and generate correct responses. | |||||
RE: Create Free AI Tools With WordPress and Gemini in 3 Minutes | 4 Relevance | 5 months ago | bibi | Online Tools Development | |
@husein Unfortunately all my attempts failed THIS a sample of what i replace in javascript imageContainer.innerHTML = '<img src="https://habibart.com/wp-content/uploads/2024/03/robot.jpg" alt="Error" style="max-width: 100%;">' i change all of them with robot.jpg is something wrong with my edit please help! |
Forum Information
Our newest member: Carlos Alberto
Latest Post: problems with make
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed