Images Paths are Incorrect

Permalink
First off, thank you for any assistance that anyone may provide. I've used Concrete5 in the past and haven't had any issues with it up until now.

The problem arose when I downloaded the site files and exported the database from the Production site and installed it locally on a MAMP server for further Development. The database imported fine and all the site files are in the correct place, but for some reason the attached file is what I get. Now I've inspected the site and modified the image path by removing the first "/" and the images show up just fine. However this path is being created by the <?= $view->getThemePath() ?> tag and I'm not sure how to modify it or even if I should.

Also attached is an error that I'm getting below all the content and I'm not sure if it's related. Again any help is greatly appreciated.

2 Attachments

 
aravindmj replied on at Permalink Reply
You could try replacing
<?= $view->getThemePath() ?>

with
<?= View::url($view->getThemePath()) ?>

*Note - For this to work you must have pretty url enabled and site at the root.*
ReubenGarcia replied on at Permalink Reply 1 Attachment
I don't believe that Pretty URL's is activated on the site. The last time that I tried activate it, I believe it mentioned that the option wasn't available. How ironic that it shows up as an option though. However I can't even log in on the local version of the site. I'll attach an image of what I'm getting as a result. Also again at the bottom of the page I'm getting the following error:

Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mbimedia2016.workflowprogress' doesn't exist' in /Applications/MAMP/htdocs/NEW-Site/MBI-Media/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91 Stack trace: #0 /Applications/MAMP/htdocs/NEW-Site/MBI-Media/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(91): PDOStatement->execute(Array) #1 /Applications/MAMP/htdocs/NEW-Site/MBI-Media/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(830): Doctrine\DBAL\Driver\PDOStatement->execute(Array) #2 /Applications/MAMP/htdocs/NEW-Site/MBI-Media/concrete/src/Database/Connection/Connection.php(64): Doctrine\DBAL\Connection->executeQuery('select wp.wpID ...', Array) #3 /Applications/MAMP/htdocs/NEW-Site/MBI-Media/concrete/src/Workflow/Progress/PageProgress.php(47): Concrete\Core\Database\Connection\Connection->Execute('select wp.wpID ...', Array) #4 /Applications/MAMP/htdocs/NEW-Site/MBI-Media/concrete/elem


I've checked the database and the table "workflowprogress" in fact does not exist. Now this is particularly strange as a clean install of Concrete5 does have this and additional tables. However on the Production version of the site, this table does not exist and the site works fine. Any thoughts?
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
When you exported the database from the existing site did you just click the database name and then click export (Option 1)?
Or, did you click the database name, scroll to the bottom and click select all and then from the selected choose export tables (Option 2)?

If it was the latter (Option 2) then your exported file does not have all the tables included, this will be because phpMyAdmin only displays 250 tables in the page view (default). If you look at the top of the list of tables, you will notice a 'Page Number' select box and there will be 2 pages to select from.
Using Option 2 will only export Page 1....

So the answer is use option 1 above, i.e. just click the database name and click export..