It is necessary to correct the paths in the admin panel of the website written in PHP to the database.
This is the website of a newspaper with an administrative part, everything is written in PHP,
after transferring from one hosting to another, the site's admin panel does not allow creating a newspaper and adding the old newspaper to the archive,
this is related to the fact that the paths to the databases need to be changed in the code, because the path needs to be corrected, all the database code has been transferred and everything works correctly.
Initially, there was an error with adding news to the newspaper, which has been fixed
"The error was that in your database the fields were without default values, and in your project, the addition goes first with one (without values at all), then the values are updated in the created row, which cannot be created without the necessary values"
further knowledge is lacking to fix it)
The site's admin panel https://migraciya.com.ua/admin
after we find someone to fix this, we will provide access to manage the hosting and access to the admin panel of the site
[Sat Dec 28 22:08:28.334133 2024] [lsapi:warn] [pid 2373715] [client 194.54.88.5:0] [host migraciya.com.ua] Backend log: \xd0\x94\xd0\xbe\xd0\xb1\xd0\xb0\xd0\xb2\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5 \xd0\xbd\xd0\xbe\xd0\xb2\xd0\xbe\xd1\x81\xd1\x82\xd0\xb8: sectionId=, newsUrl=, title=test\n, referer: https://migraciya.com.ua/admin/addnew/
nothing is passed from the form except the title
we tested the error, here is what we managed to find out: the admin panel works from the folder user225910/data/www/application
the form itself is located at user225910/data/www/application/admin/controller/addnew.php
we added to the logging
error_log("sectionId={$sectionId}, newsUrl={$newsUrl}, title={$_POST['title']}");
error_log("Adding news: sectionId={$sectionId}, newsUrl={$newsUrl}, title={$_POST['title']}");
when adding news, the following error occurs
[Sat Dec 28 22:08:28.334114 2024] [lsapi:warn] [pid 2373715] [client 194.54.88.5:0] [host migraciya.com.ua] Backend log: sectionId =, newsUrl =, , referer: https://migraciya.com.ua/admin/addnew/
[Sat Dec 28 22:08:28.334133 2024] [lsapi:warn] [pid 2373715] [client 194.54.88.5:0] [host migraciya.com.ua] Backend log: \xd0\x94\xd0\xbe\xd0\xb1\xd0\xb0\xd0\xb2\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5 \xd0\xbd\xd0\xbe\xd0\xb2\xd0\xbe\xd1\x81\xd1\x82\xd0\xb8: sectionId=, newsUrl=, title=test\n, referer: https://migraciya.com .ua/admin/addnew/
the form does not pass parameters, the reason could not be determined.
when archiving the newspaper for November, an error occurs
It is not possible to add a new newspaper, neither jpeg nor pdf to the archive
everything is related to this error
Fatal error: Call to a member function toArray() on a non-object in /var/www/user225910/data/www/application/admin/controller/gui.php on line 73
this is the error that is displayed
screenshots attached
Applications 4
Client's review of cooperation with Olena S.
It is necessary to correct the paths in the admin panel of the website written in PHP to the database.Great specialist!
I recommend to everyone!
Responds instantly to requests and bugs
Task completed excellently
Thank you
Freelancer's review of cooperation with Sergey Voronenkov
It is necessary to correct the paths in the admin panel of the website written in PHP to the database.Very communicative, adequate client.
The best part was that there was mutual interest in completing the task, which helped achieve the goals.
Thank you for the cooperation!
-
1167 14 0 Good day, Serhiy!
I will do my best to quickly resolve your issue with the admin panel on PHP. Your problem with incorrect paths to the database requires code adjustments to eliminate errors when adding news and archiving. I will analyze the logic of your code and fix the routes, ensuring correct parameter transmission.
I assure you of high-quality work and promptness!
Sincerely, Olena.
-
735 141 0 1 Feel free to reach out, I'll try to figure it out!!!
Without reviewing the code, there's not much that can be said.
-
439 5 0 We are ready to fix the issues on your website related to the migration to a new hosting. From the description, it is clear that the main tasks include:
1. Setting up the transfer of parameters from the form for adding news.
2. Fixing errors when archiving the newspaper, including processing files (JPEG, PDF).
3. Analyzing and resolving the issue with calling the method `toArray()` on an uninitialized object in the administrative part of the site.
What we will do:
- We will analyze the code and project configuration.
- We will check the database paths and environment settings.
… - We will ensure that the forms correctly transmit data.
- We will fix the logic of working with the database, including mandatory values in the fields.
- We will conduct testing after making changes to ensure stable operation.
To start the work, access to the hosting and the administrative part of the site will be required. The deadline for the task will be clarified after analyzing the provided data.
If you are ready, please write to discuss the details.
-
1639 20 0 3 Good day, I am happy to help fix the errors on the website. Experience in PHP for 17 years Fatal error: Call to a member function toArray() on a non-object in /var/www/user225910/data/www/application/admin/controller/gui.php on line 73 This error indicates that the called method toArray() is being applied to a value that is not an object. Apparently, the coders did not code it correctly for you, this is not related to the database The price is final even if other errors arise along the way.
-
1899 29 1 1 Good day! I am always available to help. Write to me, we will discuss! And don't forget to check out the portfolio — there is a lot of interesting stuff there!
-
952 15 0 Good afternoon. I am ready to do it right now. I will catch it quickly, especially since you have already indicated the direction in the technical specifications. I will also write the reason if it does not match yours.
-
10922 224 0 1 Good afternoon. Are you sure it worked before?)
It's just unlikely that half of the functionality broke after moving to another hosting.
Are the PHP versions and PHP modifications the same?
Write to me, we need to look into it in more detail.
The price will be after I see everything with my own eyes.
-
2597 427 9 1 I can take a look
Current freelance projects in the category PHP
Horoshop SpecialistNeed a specialist who can correctly set up the product Feed. Problem: Currently, over 13,000 products are being uploaded with the same type value (e.g., "everything for manicure and pedicure"). Because of this, it is impossible to segment products in Google Ads and set different… PHP, Website Maintenance ∙ 19 minutes back ∙ 5 proposals |
Make sure that order emails from the store do not go to spam.Currently, there is a store on OpenCart, and order emails are landing in spam. We need to ensure they go to Inbox (ukr.net gmail) and check it. The hosting provider wrote: Poor email delivery may be related to a low sender reputation - IP or domain. In this case, we can advise… PHP, Web Programming ∙ 1 day 1 hour back ∙ 46 proposals |
Transfer the fully ready adaptive HTML5 structure to WordPress.
267 USD
I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are… Content Management Systems, PHP ∙ 4 days 3 hours back ∙ 69 proposals |
GoPos IntegrationHello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their… PHP, Web Programming ∙ 4 days 19 hours back ∙ 26 proposals |
Write meta data for ALT using AIA website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification. AI & Machine Learning, PHP ∙ 5 days 16 hours back ∙ 35 proposals |