I'm hoping that the following means my module is actually close to working???
Ok so I created this module with the help of chatgpt and somewhere along the line something has gone amiss. On the storefront currently if your not logged in as a customer and attempt to visit the battle of the bands page it will display the following correctly...
Code:
{"status":"error","message":"Access denied - Please log in to use this feature!"}
Logging in as a customer then reveals the following...
Code:
{"status":"success","genres":[{"id":"3","name":"Alternative"},{"id":"2","name":"Metal"},{"id":"1","name":"Rock"}]}{"status":"error","message":"Invalid request."}{"error":"No genre selected"}{"status":"error","message":"Invalid data provided"}
Instead of something to the effect of "there is no heat currently running, please check back later"
I can't currently access the pages on the admin side for the module either as they seem to just reload to the main admin page. The only errors i seem to be getting make no sense either as it should let all customer vote but it seems to be oddly tripping up over a countried_id when my files seemingly don't mention countries_id at all...
Code:
#5 require(/home/u554521074/domains/ohcomputer.co.uk/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/u554521074/domains/ohcomputer.co.uk/public_html/index.php:94]
--> PHP Notice: Country with countries_id = 223 is either disabled or does not exist. in /home/u554521074/domains/ohcomputer.co.uk/public_html/includes/functions/html_output.php on line 896.
I also added a statement to see what was returned from trying to access the page...
[07-Jan-2024 04:25:36 UTC] POST data: Array
(
)
No doubt i am trying to achieve something that isn't possible as a feature of the module or that ive assigned something in the module that is already defined but i couldn't see "countries_id" and the only thing i can think that i'm trying to do that zen may not like is "jury invite" and "jury voting"
Could anyone possibly give me any insight as to where I may have gone wrong to see that country id error??
I'd be eternally grateful for any help/advise :)
The only thing i have noticed myself is a table that is possibly already being used... was provided in the install.sql
Code:
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(255),
-- Other user-related fields here
PRIMARY KEY (`id`)
);
I suspect this is the same table used for account creation and possibly the issue??
i have this on a new install on a fresh test site to avoid making any mess, allowing me to ensure it works on my hosting package and hopefully give it a test to find i've made it in a way it won't max out server resources.
Code:
www.ohcomputer.co.uk
The url was my marketing friends suggestion yonks ago, we never did get around to trying this to see if i could get new clients, his thought was we was more likely to say, sell to a business customer with a more professional name opposed to "crazygamer" so for now it can serve as a temp testing site.
Bookmarks