smf and wampserver

Started by lord alibaski, February 17, 2023, 12:41:47 PM

Previous topic - Next topic

lord alibaski

Hi Illori

Yeah I have run repair_settings everytime it's nothing to worry about.

vbgamer45

Does the site run? If so maybe just comment out those. Or adjust your error display/logging settings in your php.ini
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Arantor

You're only looking at the first page; there's a good few hundred items in a normal smf_settings table - scroll down a couple of pages, see what the item says.

lord alibaski

Quote from: vbgamer45 on February 26, 2023, 03:43:04 PMDoes the site run? If so maybe just comment out those. Or adjust your error display/logging settings in your php.ini

My main site is working fine, just that I had to change hosting and domain hosting a couple of weeks ago. When my domain name completed propagation for some strange reason my forum went back a week this losing a few important post. Though before it happened I downloaded a database from 14-02-23 but when I uploaded it to the server the forum went back even further, like to the middle of 2022!! I wanted to test this database I downloaded on the 14th to see what had happened so I have been trying to get it working on wampserver but with no luck.


Quote from: Arantor on February 26, 2023, 04:14:37 PMYou're only looking at the first page; there's a good few hundred items in a normal smf_settings table - scroll down a couple of pages, see what the item says.

I only just noticed this Arantor having looking at it again I didn't see the drop down menu and it was inputted on page 13, but like I said I don't know if I have inserted it correctly.

This is how it looks


vbgamer45

I run on wamp too for most of my sites. I don't use premade apache/php packages. I grab mine from apachelougne.com and php from windows.php.net and then set them up directly. Running most PHP 8.0 and have one server left on 7.4
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Arantor

No, "no value needed" is not what it's after, it should just be blank.

shawnb61

My initial suspicion here is that you have load averaging enabled on your production server...  But it's not supported on Windows, so the system may be getting confused with unix settings restored on a wamp server.

Do you have a value in the settings table for 'loadavg_enable'?

If so, I'd just plain delete that.  It shouldn't even be looking at 'load_average'...
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

lord alibaski

I've just deleted the load_average table, did a search for loadavg_enable and the value is set to 1

Just used repair settings again removed it and still gettin these errors

( ! ) Warning: Undefined array key "load_average" in C:\wamp64\www\Sources\Load.php on line 382
Call Stack
#   Time   Memory   Function   Location
1   0.0014   364904   {main}( )   ...\index.php:0
2   0.0091   386480   reloadSettings( )   ...\index.php:142

( ! ) Warning: Undefined array key "load_average" in C:\wamp64\www\Sources\Load.php on line 386
Call Stack
#   Time   Memory   Function   Location
1   0.0014   364904   {main}( )   ...\index.php:0
2   0.0091   386480   reloadSettings( )   ...\index.php:142
C:\wamp64\www\Sources\Errors.php:50:
array (size=5)
  0 =>
    array (size=3)
      'file' => string 'C:\wamp64\www\Sources\Subs.php' (length=30)
      'line' => int 6063
      'function' => string 'log_error' (length=9)
  1 =>
    array (size=3)
      'file' => string 'C:\wamp64\www\Sources\Subs.php' (length=30)
      'line' => int 5944
      'function' => string 'load_file' (length=9)
  2 =>
    array (size=3)
      'file' => string 'C:\wamp64\www\Sources\Subs.php' (length=30)
      'line' => int 5762
      'function' => string 'call_helper' (length=11)
  3 =>
    array (size=3)
      'file' => string 'C:\wamp64\www\Sources\Load.php' (length=30)
      'line' => int 526
      'function' => string 'call_integration_hook' (length=21)
  4 =>
    array (size=3)
      'file' => string 'C:\wamp64\www\index.php' (length=23)
      'line' => int 142
      'function' => string 'reloadSettings' (length=14)
Error loop.


shawnb61

As suggested above, delete the loadavg_enable entry in the settings table.

I don't think you should have deleted that table.  Generally not a good idea. 

But try deleting that entry & see where that gets you.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

dodos26

Wamp installs various php and other add-ons by default. Maybe one is disabled? Or missing? For me work on windows.
Try use IObit unistaler for unistall wamp and try install clear new forum. First create new account msql and use it.

lord alibaski

I have uninstalled it all and I am going to start from fresh.

So is this the best way to do this

Install wamp - install smf using default database - database created and forum installed

Now I have opened up phpmyadmin and the database prefix it created was smf not smf_

Where is my main forums sql file being uploaded to next? I have uploaded it to the smf table before but this is where nothing happens, so any suggestions are welcome.

Thanks

vbgamer45

I would redo the table prefixes for sure. If you can should be smf_ as the table prefix by default.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

lord alibaski

That was the 1st thing I did.

What procedure would you do next!

vbgamer45

Is the forum working now? the new install?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

lord alibaski

The default SMF install always works it's as soon as I try changing the database over to the database I upload that's when all the problems begin.

dodos26

So everything points to some sql version incompatibility. I would look for differences between the default tables and the old tables, and try convert.

lord alibaski

Quote from: dodos26 on February 28, 2023, 03:58:20 PMSo everything points to some sql version incompatibility. I would look for differences between the default tables and the old tables, and try convert.

Lost me with that one lol How would one go with converting all tables at once?

Advertisement: