WebDev

SMF Arcade => SMF Arcade Support + Plugins => Topic started by: Vincent Titus on April 29, 2024, 04:16:22 PM

Title: Arcade install
Post by: Vincent Titus on April 29, 2024, 04:16:22 PM
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-353035397ab4' at line 1
File: /home/sites/36b/7/7588baaf12/public_html/Packages/temp/arcadeinstall/Database.php
Line: 16
Title: Re: Arcade install
Post by: Vincent Titus on April 30, 2024, 08:58:12 AM
any help on this cant get the arcade to install
Title: Re: Arcade install
Post by: Dave on April 30, 2024, 10:00:02 AM
Hi Vincent,

It's possible that it wont install as you have it in a 'temp' folder within the Packages directory. All mods should be directly in the packages directory or the database doesn't know where to look for them
Title: Re: Arcade install
Post by: Vincent Titus on April 30, 2024, 06:47:36 PM
Omg ty for replying I will try that but the zip is in the package folder should i unzip it first and place it in the package folder ???
Title: Re: Arcade install
Post by: Vincent Titus on April 30, 2024, 06:51:41 PM
I think it's because there's a dash in the data base name and that's created by my host provider and I can't change it
Title: Re: Arcade install
Post by: Vincent Titus on April 30, 2024, 06:54:27 PM
What I need is the a sql file for the whole arcade database install and I could install it manually
Title: Re: Arcade install
Post by: Dave on May 01, 2024, 02:51:22 AM
What you need to do is remove the zip file from the 'Packages' folder first. Then go to 'Admin► Package Manager► Add Packages' then use the 'Choose File' button and go to where the zip file is stored on your PC click on the zip file and click on 'Upload' to add the zip file.

Once the file has been added the window will change and then all you need to do is to click on 'Install Mod' and that should install the mod for you. If you see any install errors in red that means that you have to edit thse templates/files manually.

The underscore in your database's tables/name will make no difference to the install of the mods, if you have a working SMF site then it proves that these are OK.

I hope that helps
Title: Re: Arcade install
Post by: Vincent Titus on May 01, 2024, 09:34:19 AM
yes i know but this happenes

Title: Re: Arcade install
Post by: Vincent Titus on May 01, 2024, 09:36:03 AM
i can get to the last step then get the error when i click install
Title: Re: Arcade install
Post by: Vincent Titus on May 01, 2024, 09:39:23 AM
i think because of the - ( dash ) in the database name in the database.php file the $database_name or something needs to be in quots  because the dash is a special character
Title: Re: Arcade install
Post by: Dave on May 01, 2024, 11:16:37 AM
Hmmm...I still don't know why it's showing the file in a temp folder within the Packages folder.

I'm sorry Vincent I really can't help any more
Title: Re: Arcade install
Post by: Vincent Titus on May 01, 2024, 11:59:47 AM
yeah the temp folder gets created automadily from the package installer  and once any install is complete it deletes the contents ill have to wait for chen to wake up i guess lol tyvm for trying
Title: Re: Arcade install
Post by: Dave on May 01, 2024, 01:26:30 PM
Quote from: Vincent Titus on May 01, 2024, 11:59:47 AMyeah the temp folder gets created automadily from the package installer  and once any install is complete it deletes the contents

You learn something new every day, I hope he replies soon for you. I haven't seen him for months
Title: Re: Arcade install
Post by: Vincent Titus on May 01, 2024, 02:48:37 PM
You could do me a favor you have a test site correct and if so, could you install SF 2.1 and then install the arcade the newest version I guess and then once it's all installed, can you export the database for the whole thing and post it here and I'll make the necessary changes for my site and then upload the SQL Database
Title: Re: Arcade install
Post by: Dave on May 01, 2024, 05:22:37 PM
Here you go Vincent, see how you get on with this
Title: Re: Arcade install
Post by: Vincent Titus on May 01, 2024, 06:13:07 PM
Oh wow brother thank you soooo much I'll try it once I get off work tonight
Title: Re: Arcade install
Post by: Vincent Titus on May 01, 2024, 07:11:10 PM
That just the arcade data base and not and right ?? It looks it when I looked at it
Title: Re: Arcade install
Post by: Dave on May 02, 2024, 02:51:13 AM
Yes it's just the arcade tables.

You probably already know this but I'm going to say it anyway. All you should need to do it make sure there are no arcade tables already in your database, change the table prefixes to match your own database and copy and paste the whole of the text into the SQL box in phpmyadmin then click on go and it will add the tables, if it says 'are you sure you want to' then click on yes and proceed, see image attached
Title: Re: Arcade install
Post by: Vincent Titus on May 02, 2024, 09:27:43 AM
yeah didnt work lol i think i need a database of the arcade allready installed on a copy of smf the file you gave me installed no problem but still shows i need to install it all on smf and i get the error

ex: install smf
    install arcade
    export the whole data base
Title: Re: Arcade install
Post by: Vincent Titus on May 02, 2024, 09:29:50 AM
its because my host has special characters in the database name EX:  '-353035397ab4' the dash and me or them are unable to change it they said
Title: Re: Arcade install
Post by: Ronald on May 02, 2024, 09:47:32 AM
Quote from: Vincent Titus on May 02, 2024, 09:29:50 AMits because my host has special characters in the database name EX:  '-353035397ab4' the dash and me or them are unable to change it they said

Ask vgamer to help you with this.
Title: Re: Arcade install
Post by: Skhilled on May 02, 2024, 12:46:23 PM
If you have access to phpmyadmin, you might also want to check the db and see if all of the table collations are the same AND are the same that the server is set to...
Title: Re: Arcade install
Post by: Vincent Titus on May 02, 2024, 03:13:54 PM
Looks good yes
Title: Re: Arcade install
Post by: Vincent Titus on May 02, 2024, 03:16:43 PM
I have other mods that installed with no problems so why this one
Title: Re: Arcade install
Post by: Vincent Titus on May 02, 2024, 03:19:46 PM
I get a permission error forbidden when I try to use package manager manager to upload the file
Title: Re: Arcade install
Post by: Skhilled on May 02, 2024, 03:28:10 PM
Now that I look more at the following, I haven't seen numbers in a hosting's path like this in a LONG time and I've been surfing the net for 35+ years...after '/home/sites/'.

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-353035397ab4' at line 1
File: /home/sites/36b/7/7588baaf12/public_html/Packages/temp/arcadeinstall/Database.php
Line: 16

I'm no expert but I'm thinking that it's either hosting related to the db and/or up may need to upgrade your forum, db, etc. to the latest versions starting with using SMF's upgrade.php which will make sure that the your db is upgraded to the latest version. Other than that, I've got nothing else...
Title: Re: Arcade install
Post by: Vincent Titus on May 02, 2024, 04:40:51 PM
Yeah when I install a site using their quick install , it automatically creates the database I can not create one myself it doesn't let me they put that at the end so there's no conflict between anyone on their servers . I will try the update grade.php but I am using 2.1 tyvm for trying
Title: Re: Arcade install
Post by: Vincent Titus on May 02, 2024, 04:43:00 PM
The thing is I installed the portal mode and other mods with no problems at all , why the arcade ??
Title: Re: Arcade install
Post by: Skhilled on May 03, 2024, 09:18:44 PM
Then another mod may be conflicting with it, perhaps?
Title: Re: Arcade install
Post by: Vincent Titus on May 04, 2024, 10:44:43 AM
no i tryed the arcade first thing with out any other mods installed then i tryed other mods to see if it happenes and they all work fine
Title: Re: Arcade install
Post by: Vincent Titus on May 05, 2024, 04:17:24 PM
ok i was able to get by the database.php file by changing it to

if (strpos($db_name, '.') === false) {
    $result = $smcFunc['db_query']('', "SHOW TABLE STATUS FROM `{raw:db_name}`", array('db_name' => $db_name));
} else {
    $result = $smcFunc['db_query']('', 'SHOW TABLE STATUS FROM `' . $db_name . '`', array());
}


by adding the backtick ` here `{raw:db_name}`" and here  `' . $db_name . '`',


i assume ill have to do that to all including the other files like Sub_install.php because now the error is on Sub_install.php file lol

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-353035393de2
LIKE 'smf_arcade_games'' at line 2
File: /home/sites/36b/7/7588baaf12/public_html/Packages/temp/arcadeinstall/Subs-Install.php
Line: 57
Title: Re: Arcade install
Post by: Vincent Titus on May 06, 2024, 09:11:36 PM
so i found this on the error logs of my host

PHP Parse error:  syntax error, unexpected single-quoted string "{db_prefix}", expecting ")" in

/arcadeinstall/Subs-Install.php on line 53'
Title: Re: Arcade install
Post by: Vincent Titus on May 16, 2024, 04:05:02 PM
So I was having the same error when I tryed to install the battle mod so in order to fix that I had to add the backtick to a couple parts of the 2 files dealing with the data base and I was able to install the battle mod and all is well so I need to find where I need to add the backtick like this '{ $data_base }' that's not the back tick it's the one pointing the other way I can't do it from my phone but you get what I mean in the database files... I'll figure it out eventually lol
EhPortal 1.39.6 © 2024, WebDev