Post by thomas_1989 » Sat Apr 20, 2024 3:59 am

I wanted to use opencart 3.0.3.6, but my web server php is 8.2 which I read somewhere that its not supported so I downloaded the 3.x.x version.

I am now trying to create a custom page by using this tutorial:
viewtopic.php?t=186404

I did all the steps and used the url: index.php?route=information/static, and all Im getting is:
The page you requested cannot be found!

Can someone please help me on this?

Newbie

Posts

Joined
Sat Apr 20, 2024 3:53 am

Post by Johnathan » Sat Apr 20, 2024 9:30 pm

1. Use 3.0.3.9 if you're using PHP 8.2:

https://www.opencart.com/index.php?rout ... ad/history

The upgrade should be pretty straight-forward from 3.0.3.6, but make sure you have a backup of your store just in case anything goes wrong. I haven't checked for database changes between those two versions, but if there aren't any, you should be able to just upload the new files over the old ones (and then refresh your ocMod cache in Extensions > Modifications).


2. Is your custom page just informational? If so, use an Information page (created in Catalog > Information). Anything you can do with HTML/javascript you can do with an information page.

If you need to use PHP then you can create a custom page like in that other topic, but it's hard to say why it's not working for you. Double-check the first couple of lines of your controller file, which should be located here:

/catalog/controller/information/static.php

The first lines should look like this:

Code: Select all

class ControllerInformationStatic extends Controller {
	public function index() {
                ...your custom code here...
        }
}

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 20 guests