Error create new group
-
Hi, I wanted to know why when I create a new group the system gives me this error “There was an error loading the page. Please try again by reloading the page via the menu on the left. If the problem persists, please ask for help on the support forums”.
At the moment I have configured 2 groups, one with ID 1 and the other with ID3.
ThanksThe page I need help with: [log in to see the link]
-
I found the fix and the fault – but mods keep deleting my posts
I have to say that it took me a few attempts to get my reply on here…. this forum doesn’t seem to work in the same way as any other I’ve ever used 😀
You can always post on my own forums if this one doesn’t work for you – links are In your dashboard.
As for the group error, I can’t really see what’s going on as it works for me on my website. But if you look in the servers error_log file there will be something in there that’ll tell us what’s going on.
As I mentioned before. Without those errors I can only guess at the issue.
I think I found the error – Stay tuned.
thanks Arnan. I don’t have access to the hosting for the site I am having a problem with just yet, but should do next week. I do have another site and it seems to be working fine on that one. I’ve run the updater on both sites. It’s probably not related but once I’ve run the updater I get a message (on both sites) saying
!Database and core settings updated.
Thanks for updating AdRotate Pro!This is slight confusing as I don’t have the Pro version (as suggested by the message).
Adrotate verion 399, database version 68
Hmm, that’s the wrong text indeed. AdRotate Banner Manager and Pro share a lot of code 😉
I’ll fix that too. The updater for now is not working btw. But I’m working on fixing that.
I’ll try again, the error is in adrotate/dashboard/publisher/groups-edit.php
there are four missing database fields, woo_cat, woo_loc, bbpress, bbpress_loc in table adrotate_groups
as a fix you can either add the fields to the table manually, woo_cat and bbpress are string fields, the loc fields are numeric, or just comment out the lines in the php sql query – line 16.
I chose to comment out, rather than update the table for when the developers fix the fault, commenting out the error line would be least impactful.
My new php code looks like this –
$wpdb->insert($wpdb->prefix.’adrotate_groups’, array(‘name’ => ”, ‘modus’ => 0, ‘swap’ => 0, ‘fallback’ => ‘0’, ‘cat’ => ”, ‘cat_loc’ => 0, ‘cat_par’ => 0, ‘page’ => ”, ‘page_loc’ => 0, ‘page_par’ => 0 /*, ‘woo_cat’ => ” , ‘woo_loc’ => 0, ‘bbpress’ => ”, ‘bbpress_loc’ => 0 */ , ‘mobile’ => 0, ‘geo’ => 0, ‘wrapper_before’ => ”, ‘wrapper_after’ => ”, ‘gridrows’ => 2, ‘gridcolumns’ => 2, ‘admargin’ => 0, ‘admargin_bottom’ => 0, ‘admargin_left’ => 0, ‘admargin_right’ => 0, ‘adwidth’ => ‘728’, ‘adheight’ => ’90’, ‘adspeed’ => 6000, ‘repeat_impressions’ => ‘Y’));
part in bold is the commented section.
Correct – And when the updater works those fields are added.
Of-course make these edits at your own risk.But the update will be ready later today – So if you can hold out a few more hours that’ll work too 🙃
Version 5.10.1 is available now – More info here: https://ajdg.solutions/blog/adrotate-banner-manager-5-10-1-available-now/
thanks Arnan. This now works for me 🙂 Love this plugin by the way and hope to upgrade to Pro in the near future as funds allow!
That’s good to hear 🥳
And looking forward to your purchase!Have a nice weekend.
Hi again. The update fixed the ‘Add new Group’ functionality, but still the post injection doesn’t work. I’ve tried to manually update the database, clear the cache and also re-create a group. When loading the post it shows but after a refresh it disappears!
On the php error log I get a lot of the below:
[15-Jan-2023 17:47:13 UTC] PHP Warning: Attempt to read property "ID" on int in /web/***/public_html/wp-content/plugins/adrotate/adrotate-output.php on line 377 [15-Jan-2023 19:08:36 UTC] PHP Warning: Attempt to read property "ID" on int in /web/***/public_html/wp-content/plugins/adrotate/adrotate-output.php on line 377 [15-Jan-2023 19:30:08 UTC] PHP Warning: Attempt to read property "ID" on int in /web/***/public_html/wp-content/plugins/adrotate/adrotate-output.php on line 377Any ideas?
I don’t have that warning on any of my sites.
ID is the post id, a value provided by WordPress through $post, which holds all your post data for the currently loaded page/article.Which version of AdRotate do you use? 5.10.1?
Sorry for not being clear. It’s the latest version (5.10.1) that corrects the new Group issue, but didn’t correct the post injection issue.
Didn’t have these issues prior to 5.10
Thank you for your prompt support!
@gasmas75 then I’m not sure which issue you’re referring to.
Perhaps it’s easier if you start a new topic and describe what you’re having trouble with. As the issues mentioned earlier in this topic, as far as I know, have been resolved.Thanks.
The topic ‘Error create new group’ is closed to new replies.