Problem moving Baker to another folder

hgs

LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

crnogorac081

Harald if you have his site it on your server I can send you current work in progress, pm me your email
Web developer

hgs

#18
Quote from: crnogorac081 on June 09, 2022, 09:03:08 AM
Of course, I will post work in progress soon
Anything to post yet?
Background of the question is:
On the test server the site is already running with the soon to be released WB version under php8.1, but very very slow. Therefore the solution is very interesting for us.
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

crnogorac081

Of course, I will post work in progress soon
Web developer

hgs

Quote from: crnogorac081 on June 08, 2022, 04:44:58 PM
Ok so the show_menu2 is replaced with new menu function (work in progress) and there is significant difference in page load speed. This is his original site and this is new upgraded to 2.13.1 with new menu function.

Website just jumped rank from F to B

I'm with dbs on this one.
Can you tell us the solution for the general one?
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

dbs

[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

crnogorac081

#14
Ok so the show_menu2 is replaced with new menu function (work in progress) and there is significant difference in page load speed. This is his original site and this is new upgraded to 2.13.1 with new menu function.

Website just jumped rank from F to B
Web developer

hgs

That is good, because I did not get any further, except that the original page on the German server runs faster than the original.
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

crnogorac081

Hello,

Im helping  svsanchez about his problem and I noticed that (since he has like 3500 pages) , Settings page is loading incredibly slow... This is probably because he has 3500 pages and they are loading for  GDRP selection table.

Also, his Pages page is loading slow too, it takes like 2 minutes for loading complete page. Therefore I an creating for him a new Page tool for managing Pages (and it will be publicly available for testing soon), and it loads complete page list in like 6-8 seconds.

So I believe that we can apply this for GDRP block too..

Web developer

hgs

LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

svsanchez

Hello hgs, sure, any help is greatly appreciated. How do I send the zip and DB to you?

hgs

The problem has been in the forum for a long time.
I can only offer to test it on my test server with the original site as subdomain with the current version of WebsiteBaker and php8.0.

If this is an option for you, I will send you the access data to my FTP server.
I need a ZIP of the website and the DB Dump
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

svsanchez

Hello Ruebenwurzel and HGS.

Unfortunately, my site got too big for WB and I can't upgrade past 2.8.3, as it becomes incredibly slow. The site has more than 3,500+ pages and it seems that every time a page is generated, WB needs to "read" the whole database to generate the "showmenus", causing this speed issue (if I remove the menus, the pages are generated very fast).

This has caused in part that my site lose positions in the search engines, going from an average of 10,000 daily visits to 1,500 daily visits.

So, as much as I have loved WB for the past 10 years, and without a solution for this (and unable to move to newer versions of PHP as WB 2.8.3 only works yo to version 5.6), I decided to change CMS. My plan is to install Wordpress in the root folder of my server, and move WB inside the "pages" directory while I change little by little the different categories of my site.

I want to leave the current URLs as they are, so as to not lose the good search engine positionings that I still have. And I will create the Wordpress pages with the same URLs as the ones from WB.

It will take me many months to move the 3500+ pages from WB to WP, but at least this way I can change the categories little by little and hopefully see the benefits more rapidly.

Crnogorac was very kind helping me yesterday on one a copy of my site, and he still has some good ideas to try.

But I created a new copy just in case, so if you have any suggestions to do this please share them.

Thanks again!

hgs

Quote from: svsanchez on May 23, 2022, 09:45:35 PM
Important: Please note that this is a WB 2.8.3 site that I have not been able to upgrade since it is very big (and when I upgrade it becomes excruciatingly slow), and so I want to try to move it to the pages directory in order to install a new main index file while I work on a new version of my directory.

The problem is the "speed" of the website, which is getting worse with every update bigger WB 2.8.3.

There is already an entry here in the forum.

Therefore, the great new functions do not work, the access files to generate new from the BE, as far as I know, there was not yet in WB 2.8.3.
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

ruebenwurzel

Hello,

if you have the index.php of WB also moved to the /pages directory you have to adapt the path in your hosting package.

What was the intent of your idee to move WB in the /pages directory? If the only reason is to get rid of the /pages directory, this can be don in WB 2.13.1 by a simple mouseclick in the backend of WB by using ShortUrl.

Matthias

svsanchez

Hello Manuela, thank you for your reply. This is sort of what I did:

Quote from: DarkViper on May 24, 2022, 10:34:59 AM



The difference being that the subfolder where I moved the whole installation was already created (the PAGES directory), so now WB is installed in the Pages directory. I changed the config.php file and also used phpMyAdmin to change the pages directory to "blank".

I need to maintain the same pages URLs as they have been indexed by Google for almost 10 years and I have more than 3,500 pages.

I can access the backend but can't make any changes as anything I try to change there shows the "security offense" message. I also can access the site's homepage in the pages directory, but any other page shows an internal server error.

crnogorac081

If I understood well, you want your pages thet are currently (root)/pages/page1.php, (root)/pages/sub/page2.php to change to (root)/page1.php , (root)/sub/page1.php etc ? This might be done using htaccess
Web developer

DarkViper

#3
Quote from: svsanchez on May 24, 2022, 05:35:30 AM
Update: I noticed that for some reason, the sub-pages are looking for the index.php file in the ROOT directory of my server, instead of searching for it in the PAGES directory, even though all the files are in the PAGES directory. How do I tell Baker to use the index.php file inside the Pages directory?
The answer:  no way to do so.. if you don't want to change thousends of things inside the code..  ;-)

Ok. Thera are two possibilities:

  • You can move the whole installation into a new created subfolder and adjust the content of the config.php file accordingly. This changes the WB call from [ https://example.com/ ] to [ https://example.com/subfolder/ ].
  • You can move the pages from the [base/] folder to the [base/pages/] folder or vice versa.. Its easy to do..  a:) create the empty pages/folder, b:) delete all generated existing accessfiles and it's subfolder structure. c:) using PHPAdmin change content of 'pages_directory' to '/pages' in table {TP}settings.  c:) Open the backend and request a 'rebuild accessfile' .
All other changes to the directory structure and the placement of files within this structure inevitably lead to (mostly unrecoverable) problems.

greatings,
Manuela
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

svsanchez

Update: I noticed that for some reason, the sub-pages are looking for the index.php file in the ROOT directory of my server, instead of searching for it in the PAGES directory, even though all the files are in the PAGES directory. How do I tell Baker to use the index.php file inside the Pages directory?

svsanchez

Hello, I am trying to move Baker to the "pages" directory so that all of Baker will be on the same directory, as if I had installed it in the root from the beginning.

Ok, so my Baker was installed in the root and I moved all the directories and the index.php + config.php files to the "pages" directory. (None of the actual pages of the site were moved)

Then, I changed the "pages" directory to blank in phpmyadmin, as it didn't allow me to change it on the backend.

I can access the backend and the main page of the site.

The problems I am facing are:

1) I can't access the "sub-pages", I get an internal server error (Error 500).

2) Since I can access the homepage, I thought that maybe there is a problem with my sub-pages templates. I tried modifying the template via the backend, but I get a "Security offense!! Access denied!" message whenever I try to make any change.

What can be causing the internal server error and security offense messages?

Important: Please note that this is a WB 2.8.3 site that I have not been able to upgrade since it is very big (and when I upgrade it becomes excruciatingly slow), and so I want to try to move it to the pages directory in order to install a new main index file while I work on a new version of my directory.