WebsiteBaker Support (2.12.x) > General Help & Support

Menu items prompt download of php file. Upgrading from 2.8 solution?

(1/5) > >>

styzer1137:
Hi, if my post needs to be moved, please do. I could not find how to start a new topic in 2.8.

► I'm stuck here with a site that has been having issues. I'm running PHP 5.2 on it, but when I click on a menu item, it prompts a download request for the php page instead of opening that page.

The site is here: http://www.spiritfm.ca/2/

On Mac OS, instead of a download prompt, he gets this message:


--- Code: ---<?php
$page_id = 4;
require("../config.php");
require(WB_PATH."/index.php");
?>
--- End code ---

Before moving to WordPress, I'd like to fix this for my client if possible.

Is it possible to upgrade directly from 2.8 to 2.12? And would this fix the issue? I don't want to make him pay for work that won't fix it.

Thanks in advance!

Andre


dbs:
Hi, witch hoster allows you to use PHP 5.2?

Your way should be upgrade to WB 2.8.3 (PHP 5.6) and then to 2.12.x (PHP 7.3).
https://forum.WebsiteBaker.org/index.php/topic,23412.0.html

Next steps are finding updates of the used modules.
http://addon.WebsiteBaker.org/pages/en/browse-add-ons.php

styzer1137:
Thank you for your reply,

Bear in mind I built this site 8+ years ago, and never used WB after that.

My apologies - I am using PHP 5.6 (mediaserve.com, and upon request).

So how can I create a FULL back of the site in case something goes wrong?

► What are Droplets?

► "Backup your changed Files in modules and templates folder like .css, .js and .htt"

How do you identify the files that were changed? Are these all in the same folder?

As for modules, what if there are no new versions? (anynews)


Many thanks,

Andre

DarkViper:
I scanned your site briefly.
I noticed one thing:

The calling domain is spiritfm.ca
.. In the menu links of the page, however, the domain spirit-fm.ca appears.

Am I correctly assuming that no PHP is installed or activated on the web space of the domain spirit-fm.ca?

If I remove the hyphen from the wrong domain names for the menu links, every pageview works perfectly.

So first of all you should look for where the domain name is being falsified. (Possibly. Config.php?)

have a nice day,
from Manuela

PS: Just I checked your config.php. Following changes must be made:

define('WB_URL', 'http://www.spirit-fm.ca/2');
define('WB_URL', 'http://www.spiritfm.ca/2');

define('ADMIN_URL', 'http://www.spirit-fm.ca/2/admin');
define('ADMIN_URL', 'http://www.spiritfm.ca/2/admin');

Swap red for blue and your site again will work fine.

styzer1137:

--- Quote from: DarkViper on March 09, 2021, 08:29:56 PM ---I scanned your site briefly.
I noticed one thing:

PS: Just I checked your config.php. Following changes must be made:

define('WB_URL', 'http://www.spirit-fm.ca/2');
define('WB_URL', 'http://www.spiritfm.ca/2');

define('ADMIN_URL', 'http://www.spirit-fm.ca/2/admin');
define('ADMIN_URL', 'http://www.spiritfm.ca/2/admin');

Swap red for blue and your site again will work fine.


--- End quote ---

YES!!

EDIT: I'm able to access the admin page by removing the php at the end of admin, and it becomes http://www.spiritfm.ca/2/admin/login/index.php.

Can I find my login info from a file on the server?

Navigation

[0] Message Index

[#] Next page

Go to full version