If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Site webform not open after hosting changing

Started by jessepeterson, Nov 10, 2022, 08:48 AM

Previous topic - Next topic

jessepetersonTopic starter

A coder created an application form that sends data to Telegram when the website was hosted elsewhere. This form reached version 8.0 before the PHP hosting migration, but the old web hosting refused to provide free SSL without a dedicated IP fee. The website moved to another hosting, which made it https, but the PHP version is now 7.4.

Despite multiple attempts to rephrase, a clear answer to the issue of why an application form on a website is not clickable and does not open could not be found. The "telegram form" folder is located at the root of the website containing three folders with css, php, and js files. HTTP links were changed to HTTPS recently, but the form remains nonfunctional. The hosting service provider reported that all scripts are executed but with JavaScript errors. Although screenshots were provided, they are only accessible through VPN. There is no desire to contact the developer who made the form, so troubleshooting continues. It is believed that the issue is associated with the PHP change or hosting migration. Access to the code is difficult due to numerous files and folders.

The site runs on MODX 2.8.3-pl, and despite efforts to solve the problem, it has persisted for three years now. Professional assistance is required as a solution to this difficult question cannot be found on the internet.
  •  

fizzer

The error message "missing closing tag </script>" appears before the line with the Google Analytics global site tag. Additionally, submitting the application results in a PHP error. Enabling error output to the log is recommended as an alternative to outputting errors on the screen. These logs should be reviewed periodically to address any identified errors. It is also recommended to disable error output on the combat server and only enable it on the developer's computer.
  •  

GDsdZordkar

The provided information is quite complex and contains numerous details, so I will try to structure the answer and suggest possible solutions.
Here are some examples to illustrate the potential issues and solutions:

1. SSL/HTTPS Issue:
Example: If the application code has a hard-coded HTTP link like `<script src="http://example.com/script.js"></script>`, it will not work on an HTTPS website. This needs to be updated to `<script src="https://example.com/script.js"></script>`.

2. PHP Version Issue:
Example: In PHP 8.0, the `$null` coalescing assignment operator `??=` was introduced. If the application code uses this operator, it will cause a syntax error in PHP 7.4. The code needs to be updated to use the older ternary operator syntax or other compatible constructs.

3. JavaScript Issue:
Example: If the application uses a third-party JavaScript library that has been updated or deprecated, it may cause conflicts or errors in the new hosting environment. For instance, if the application uses an older version of jQuery, and the hosting provider has updated to a newer version, it can cause compatibility issues.

4. MODX CMS Issue:
Example: MODX CMS has specific requirements for PHP versions and configurations. If the new hosting environment does not meet these requirements, it can cause issues with MODX functionality, including the custom form submission process.

5. Code Analysis and Project Structure:
Example: If the application has a complex structure with numerous files and folders, it can be challenging to identify the specific files responsible for form submission. You may need to trace the code execution flow from the form submission event to the Telegram integration code.
  •  

thebangaloredhaba

When changing hosting providers, webform issues can arise due to differences in server configurations or file permissions. To resolve this, first check if all your website files, including those related to the webform, have been correctly transferred to the new host. Next, review your website's configuration files, such as .htaccess, to ensure they're compatible with the new hosting environment. It's also crucial to update any database connection settings if your webform relies on a database. If the problem persists, contact your new hosting provider's support team for assistance, as they can help identify and resolve any server-specific issues affecting your webform's functionality.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...