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: Python Script crashes | 4 Relevance | 1 year ago | Aerostan | Python Scripting | |
@admin - I went back into the original folder and the only PDF was the one with the cost estimates via ChatGPT. Where else should I be looking? | |||||
RE: Simplerllm install error | 3 Relevance | 1 month ago | Tony P. | Python Scripting | |
@husein I am having issues with the install. When I follow the steps this is the message I am getting. not sure what I've done wrong. Attachment : Screen Shot 2024-08-11 at 9.14.53 PM.png | |||||
RE: Backlink Indexing | 3 Relevance | 2 months ago | Rostik | WordPress | |
@admin In my opinion it is so. Of course, I could be wrong, I'm new to this, as already mentioned. If this is not so please correct me. Also, please explain in more detail about "...Plus, create a sitemap containing the URLs where your backlinks are located and submit it to search engines like Google via their respective Webmaster Tools...". Or tell me where it can be read. | |||||
RE: How to Create AI Tools in WordPress in 5 Minutes ? | 8 Relevance | 1 year ago | Michael B | Online Tools Development | |
@admin Snippet Code "Property Tour Generator Assistant" 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- ------------------------'; // 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'); Tour Assistant Tool on my WordPress website <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Property Tour Generator Assistant</title> <style> /* Your existing styles here */ /* Style for the generate button */ #generate-button { background-color: #004aad; color: white; padding: 10px 20px; border: none; cursor: pointer; transition: background-color 0.3s; } #generate-button:hover { background-color: #22a2e3; } /* Spinning faces loader style */ #loading { display: inline-block; font-size: 24px; animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } </style> </head> <body> <div id="text-generation-tool"> <input type="text" id="agent-name" placeholder="Agent Name and Company"> <input type="text" id="city-neighborhood" placeholder="City/Neighborhood"> <input type="text" id="property-address" placeholder="Property Address"> <textarea id="features-designs" placeholder="Features and Designs"></textarea> <button id="generate-button">Generate 🏡 Description</button> <div id="loading" class="loader" style="display: none;">🎭</div> <!-- Spinning masks icon --> <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> <script> const generateButton = document.getElementById("generate-button"); const loading = document.getElementById('loading'); const result = document.getElementById('result'); const resultC = document.getElementById('result-container'); generateButton.addEventListener("click", async function(e) { e.preventDefault(); if (generateButton.disabled) { return; } generateButton.disabled = true; loading.style.display = 'block'; result.style.display = 'none'; resultC.style.display = 'none'; const agentName = document.getElementById('agent-name').value; const cityNeighborhood = document.getElementById('city-neighborhood').value; const propertyAddress = document.getElementById('property-address').value; const featuresDesigns = document.getElementById('features-designs').value; const inputText = `${agentName} ${cityNeighborhood} ${propertyAddress} ${featuresDesigns}`; try { const response = await fetch('/your-api-endpoint', { // Replace with your actual API endpoint method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ prompt: inputText }) }); const data = await response.json(); if (data.success) { result.value = data.data.choices[0].message.content; } else { result.value = 'An error occurred: ' + data.data; } } catch (error) { result.value = 'An error occurred: ' + error.message; } finally { loading.style.display = 'none'; result.style.display = 'block'; resultC.style.display = 'block'; generateButton.disabled = false; } }); const copyButton = document.getElementById('copy-button'); copyButton.addEventListener('click', function() { result.select(); document.execCommand('copy'); alert('Copied to clipboard!'); }); </script> </body> </html> | |||||
RE: Create Free AI Tools With WordPress and Gemini in 3 Minutes | 4 Relevance | 5 months ago | bibi | Online Tools Development | |
HOW TO BE SURE OF THE PATH TO THE OBJECTS? i sent already the code above please see if there is a problem with the path I just went back to the code snippet and updated my new API key and deleted the page and created a new one and changed all the URLs to my own domain and replaced HTTP by https and still got the same error please help! this is what the issues in the developer tools ; Failed to load resource: the server responded with a status of 404 ()jquery-migrate.min.js?ver=3.4.1:2 JQMIGRATE: Migrate is installed, version 3.4.1frontend.min.js?ver=3.7.7:2 Uncaught TypeError: Cannot read properties of undefined (reading 'handlers')at 3515 (frontend.min.js?ver=3.7.7:2:1892)at __webpack_require__ (webpack-pro.runtime.min.js?ver=3.7.7:2:149)at 4774 (frontend.min.js?ver=3.7.7:2:1546)at __webpack_require__ (webpack-pro.runtime.min.js?ver=3.7.7:2:149)at 2 (frontend.min.js?ver=3.7.7:2:137)at __webpack_require__ (webpack-pro.runtime.min.js?ver=3.7.7:2:149)at frontend.min.js?ver=3.7.7:2:21363at webpackJsonpCallback (webpack-pro.runtime.min.js?ver=3.7.7:2:4826)at frontend.min.js?ver=3.7.7:2:69jquery.min.js?ver=3.7.1:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'tools') TypeError: Cannot read properties of undefined (reading 'tools')at Frontend.initOnReadyComponents ( at Frontend.init ( at HTMLDocument.<anonymous> ( at e ( at t ( undefinedce.Deferred.exceptionHook @ jquery.min.js?ver=3.7.1:2jquery.min.js?ver=3.7.1:2 Uncaught TypeError: Cannot read properties of undefined (reading 'tools')at Frontend.initOnReadyComponents (frontend.min.js?ver=3.21.3:2:7026)at Frontend.init (frontend.min.js?ver=3.21.3:2:9143)at HTMLDocument.<anonymous> (frontend.min.js?ver=3.21.3:2:9369)at e (jquery.min.js?ver=3.7.1:2:27028)at t (jquery.min.js?ver=3.7.1:2:27330)/wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 400 ()blog-title-generator/?preview_id=3635&preview_nonce=fbca5a1920&preview=true:570 Failed to fetch titles(anonymous) @ blog-title-generator/?preview_id=3635&preview_nonce=fbca5a1920&preview=true:570loading.webp:1 Failed to load resource: the server responded with a status of 404 ()error_image.png:1 Failed to load resource: the server responded with a status of 404 ()/wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 400 ()blog-title-generator/?preview_id=3635&preview_nonce=fbca5a1920&preview=true:570 Failed to fetch titles(anonymous) @ blog-title-generator/?preview_id=3635&preview_nonce=fbca5a1920&preview=true:570loading.webp:1 Failed to load resource: the server responded with a status of 404 ()/wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 400 ()blog-title-generator/?preview_id=3635&preview_nonce=fbca5a1920&preview=true:570 Failed to fetch titles(anonymous) @ blog-title-generator/?preview_id=3635&preview_nonce=fbca5a1920&preview=true:570error_image.png:1 Failed to load resource: the server responded with a status of 404 ()contentScript.js:1 P Received SHOW_SIDEBAR_APP action in content script | |||||
RE: Earthquake and Python | 4 Relevance | 1 year ago | fractal_hacks | Python Scripting | |
Okay. I'm a little confused and I think I may have messed things up. I had a previous version of Python installed but I went ahead and installed the one you recommended. Previously I had used pycharm when interacting with python. When trying to load the api using the method you recommend all I would get is a black screen for a second that would disappear before I could load the api. I also tried opening a command prompt and loading it. When hitting enter after typing python, inserting a space and pasting the address to the location I have ai.py stored at it would just go back to a prompt. I got the bright idea of going through pycharm to load the api, which I did. Then I opened the batch file by double clicking on it (I don't think it is possible to open it through Pycharm). I entered the topic chatgpt tricks. Tweets and content ideas were generated in a couple instances and then it gets to a point which I have taken a screenshot of and attached. I am told to click on any button to continue and when I do, the screen disappears, without providing the pdf or anything further. Attachment : Screenshot (127).png One more quick question, should I uninstall previous versions of Python? Thanks, Steve | |||||
RE: Backlink Indexing | 3 Relevance | 2 months ago | Rostik | WordPress | |
@admin Thanks for your reply Hassan. As far as I know, in order to promote an article to the top of a search query for a certain key phrase, links from external sites are necessary. Please correct me if I'm wrong. I newbie in this field. | |||||
RE: Create Free AI Tools With WordPress and Gemini in 3 Minutes | 3 Relevance | 3 months ago | Husein Aboul Hasan | Online Tools Development | |
@asifa-b Can you please share the prompt and the PHP code of your tool? Maybe you are calling the wrong function? | |||||
RE: Create Free AI Tools With WordPress and Gemini in 3 Minutes | 3 Relevance | 3 months ago | Asifa B | Online Tools Development | |
@husein I did mention in the prompt how long I want it (500 words) and also increased the token limit, but still it gives the response in a single sentence. If the same prompt if I run in the gemini chat console, I get proper 500 words response. Can you please let me know where I am going wrong. Thank you | |||||
Problems with Make.com workflow | 3 Relevance | 3 months ago | Faiz Ehsan | Marketing Automation | |
Hi, This is the first time I am using Make.com and following Hassan Tutorial to create the marketing automation. I have attached the issue. I dont know what's wrong with it and how to solve it. I did everything as the video showcased π Please help as I would really like to give this a try. Just to note, I have added $10 to OpenAI api, i don't know if this information helps, but i just wrote it. Thank you and waitng π Attachment : Screenshot 2024-06-14 060511.png | |||||
RE: Content creation using make.com | 3 Relevance | 3 months ago | dimu | Marketing Automation | |
@husein as you can see in the image some steps not green after the complete. when this happened I got the wrong output because those steps not worked. | |||||
RE: No One Will Share This AI Marketing Tool For Free! | 3 Relevance | 1 month ago | Deborah Pretty | Online Tools Development | |
Sorry, I placed my question in the wrong queue. I'm not spamming the system, just an honest error. This is one of Hansen's most recent videos. I've gone through the 3 steps to set up the software. In the last step, I'm getting an error message. Therefore, I'm unable to create the UI. However, throughout the entire process, I kept getting error messages. I chatted with GPT about the errors, and they all seemed to be compatibility issues. I followed some of the recommendations and changed the constraints, etc. Finally, I got to the last instruction to create the UI and got the same error. I'm not sure if the previous explanation is the last one. I tried for hours to correct it and altered the numbers based on ChatGPT's advice, but nothing worked. I'm having the exact issue that Tony P. is experiencing. Quick question, was I supposed to download both files or just one? Github link or Download Also, I had to work inside a command prompt because Visual Studio Editor stated that I needed to remove a restriction because Powershell won't run the scripts with restricted etc. Of course, all this is new to me, but chat helped me to understand, with all of the errors and redirects, etc... I still got to the last step, and received the same error message Tony posted. Thanks in advance for your help. Deborah | |||||
RE: Setting Up AI Automation WorkFlow Using Make.com | 3 Relevance | 3 months ago | Gary Lloyd | Marketing Automation | |
Yes I gave the necessary permission for Make to be able to edit the document, but I did notice that the Google Sheet that I cloned from Hasan's video only gives view access I can't edit the Google Sheet and correct me if I'm wrong but isn't that the Google sheet that has to be connected to make, here is an image of the cloned Google sheet that I downloaded Attachment : Screenshot 2024-06-07 155642.png This is the email I got from Make.com Hi Gary, βThank you for getting back in touch and providing the video explanation. May I kindly ask you to manually navigate to the spreadsheet and verify that you have permission to edit the spreadsheet? Please try editing the sheet using the "[email protected]" account to ensure you have the necessary permissions. | |||||
Struggling with Zero Sales Despite 49.3k Impressions on Pinterest (64% Increase) | 3 Relevance | 4 months ago | Shazil Waqar | Online Business Strategies | |
I started my Fiverr Affiliate Marketing journey on August 22, 2023. As of May 25, 2024, I am still struggling. I began with 10 pins per day without any holidays, then increased to 20 pins per day four months ago. Seven months ago, I further increased to 30 pins per day. Recently, in the past seven days, I have increased to 40 pins per day. Throughout this journey, from August 22, 2023, to May 25, 2024, I only skipped 15 days of posting pins. Despite this effort, I am still struggling with zero sales. However, my Pinterest account is growing very well. In the last 30 days, I have seen a 49.3k impression, which is a 64% increase from the previous 30 days. I need your guidance on where I might be going wrong, Hasan. Please help. I attached proof of the above information. How can I contact you? Attachment : 1.png Attachment : 2.png Attachment : 3.png | |||||
RE: Create Free AI Tools With WordPress and Gemini in 3 Minutes | 3 Relevance | 5 months ago | SSAdvisor | Online Tools Development | |
@habibart what you've done is how I would do it. What @husein is mentioning, please correct me if I'm wrong, is that you can add another function to the same code snippet; but, this method I don't advise as you might end up harming your already working code. As you know already, if the code has a problem the snippet will disable itself; which is good because you don't want the site to give the user errors. | |||||
RE: Create Free AI Tools With WordPress and Gemini in 3 Minutes | 3 Relevance | 5 months ago | bibi | Online Tools Development | |
@ssadvisor I thought i did countless times but I get the same error function setPrompt($input) {return "Generate 5 catchy blog titles for a blog post about " . $input; changed the function to generate 5 catchy YouTube video titles but still get the same error am I doing it wrong please help | |||||
AI Tools With WordPress doesn't work for me | 3 Relevance | 6 months ago | Granny Elena | WordPress | |
Hey Hasan and team, I followed along with your video today and tried pasting the code onto a new page and it shows the code, not the tool working. What did I do wrong? how can I correct this? | |||||
RE: downloading the lesson at prompt engineering | 3 Relevance | 6 months ago | Richer Guinto | Prompt Engineering | |
@admin hello, i did finish the course PE, but still the Streamlit still not on my visual code, there still error, ApI key still issue, i cant connect API to visual code, im using Windows and Mac 10.15. On my mac i do have visual code but still o cant use streamlit. I did start from the very begining of the course but still not working. I might wrong on module request? What is the name of the module to be request? But anyway i want to get the lofetime subs. | |||||
RE: AI Chatbot on WordPress in 5 Minutes doesn't work for me | 3 Relevance | 5 months ago | CLARK DJILO | WordPress | |
Hello I found my error and the ai bot work very well now The problem was that I put the wrong OPENAI API KEY Please can you help me help to evolve this AI Chatbot by augmenting this code by RAG and Agent. I already know how to implement this with this video where he built a bot combining RAG and Agent: Please can you indicate me how to evolve the current code to reach this point pls ? I want to give to my ai bot a knowledge database with precises informations on my products and function to operate some task | |||||
RE: Message For Mr.Hassan and His Team | 3 Relevance | 6 months ago | SSAdvisor | Online Tools Development | |
@google-businessgmail what problem are you having? What is your URL and are you sure you changed the URL appropriately? There have been many posts on this subject and a few that give you enough detail to resolve your problem. You blame "@Hasan and his team" but YOU are the controller of the code. I suggest you create a GitHub account, create a public repository and then share your code so we can let you know what is wrong. We can't help you blindly other than telling you what works for us. |