The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
QUESTION copy site on localhost - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: QUESTION copy site on localhost (/showthread.php?tid=16237)



copy site on localhost - karin9nona - 2021-03-08

I want to make a copy of a live site to localhost, to test the upgrade to 3.3.16. I have done as I found in the documentation:
- install get-simple on my localhost (I have wampserver), that works fine
- copy the /data/ /plugins/ /theme/ folders with their content and the gsconfig.php file

And then, if I go to localhost/my-site/ or localhost/my-site/admin I get the "This site can't be reached" message. What should I do? I'm rather new to get-simple, normally I work with WordPress.

Thanks for any help!

Karin


RE: copy site on localhost - Felix - 2021-03-08

Hi,

To prevent these problems you always should declare a base url and a base path and components.
Because you most probably did not do that so now you have to rewrite your urls, paths and RewriteBase
to your localhost domain.


RE: copy site on localhost - karin9nona - 2021-03-09

Thank you! I managed to change the base url in the settings and now it works more or less (not the pictures, but I can do without). Where/how should I declare a base path and components?


RE: copy site on localhost - datiswous - 2021-03-09

Hey, maybe this GS plugin is of help to you:

http://get-simple.info/extend/plugin/migrate/966/


RE: copy site on localhost - krlllo - 2021-03-09

(2021-03-09, 02:42:19)karin9nona Wrote: Thank you! I managed to change the base url in the settings and now it works more or less (not the pictures, but I can do without). Where/how should I declare a base path and components?

You can change the URLs manually. Migrate plugin does not change every url on the website. I use notepad++ for that.
Make a backup just in case you end up replacing things you don't want. 
Open all the pages on the theme and replace what you want on notepad++. 
For example: you can replace everything that begins with https://www to http://localhost and choose to replace it on every opened document (if you are using notepad++). You can also do that for posts in news manager for example. 
That is also how I update all the old plugins to https when a browser detects that a link is not secure. 

You can replace anything very quickly this way.