so I've started dealing with PhalconPHP and I was going through some examples and I couldn't get the CSS working. So I downloaded this INVO sample application (https://github.com/phalcon/invo), put in the htdocs folder, loaded it in the browser and it is also missing the css, just blank text on a white screen. So there must be something wrong with my installation, any ideas what that might be?
Thanks!
Try clearing the baseUri value in app/config/config.ini from:
baseUri = /invo/
to
baseUri = /
I had an issue that looked the same as yours, then i noticed all links in the application are prefixed with "invo" as if my application would be in an "invo" subfolder, but it wasn't.
For the described situation I would say that your issue is similar to this question:
Image resources with Phalcon.
But since you have downloaded the INVO tutorial and it isn't working either I'd that's something to do within your Apache configuration. Please lead to this question: Friendly URLs in phalcon framwork is not working in Ubuntu
If none of these solutions solve your problems please let me know and provide more info.
Related
I wanted to try out bold cms on my localhost.
I have installed bolt cms on localhost/test (subfolder)
The admin section works great, but when I try to visit the actual site all the paths are incorrectly. Bolts tries to load different css and js files like this:
/test/public/test/public/theme/base-2016/css/theme.css
While it should be
/test/public/theme/base-2016/css/theme.css
Im sure this is easy to fix but for some reason i cant find a fix for this
Thanks in advance!
You need to put Bolt's public folder in your test folder. And put Bolt's other files one level up.
This is described in the docs where you can also find answers to other web server questions regarding Bolt.
I'm running the zend framework 1.12. I'm unable to get anything other than the index.php file to load no matter what url I feed it. And when it loads the index.php it just shows the raw php code within that file. You can check it out here: 10.10.10.137/anything. And you can literally put anything after the / and the same thing shows up.
Basically I cloned an app and have been trying to set it up on a different server, and I have never used Zend but I think that is where the problem lies.
it just shows the raw php code within that file.
This probably means that your php installation is not working.
I'm unable to get anything other than the index.php.
Review the tutorial for the Apache or Ngnix installation, you are missing mod_rewrite and / or the .htaccess file.
You can check it out here: 10.10.10.137/anything.
I guess you know it is not possible to check a local network over the internet. If you really donĀ“t know this yet, it is a good moment to go back to the books / tutorials.
Looks like your installation is missing some configuration, nothing else.
I'm thinking of using the Recess Framework which I downloaded as-is and followed the instructions studiously.
I'm using it with PHP (which is not the issue) and I seem to have it up and running... however I suspected something was slightly wrong with the pages being served (they did not contain the expected logos) so I inspected the code only to find out that the frameworks javascript and CSS files were "resource not found".
Incidentally the files exist at the path specified, and it's not a question that permissions are not set correctly - I checked that too.
But... I'm new to using "routing" through URLs as part of a MVC style and wondered if basically it has something to do with that.
If you download the framework, you'll find that the css and javascript files that make things look pretty, and activate certain parts of the framework toolset exists at the path:
http://localhost/yourRecessFolderName/index.php/recess/recess/apps/tools/public/js/shCore.js
but I get the dreaded 404 resource not found and this is preventing recess tools from working properly.
1) Has any body else had this or a similar problem?
2) What are the likely causes - help by pointing me in the right direction, unless you know the answer of course
On Recess v0.2, there is an .htaccess file in /apps that prevents direct access to children. You'd need to modify the .htaccess or configure something custom in mod_rewrite to allow the public folders under apps to be seen.
Well, seemed to fix it by downloading the most recent ("latest edge") version of the Recess framework from https://github.com/recess/recess
Everything seems to work fine now... hmm 0.o
When pass from Development to Production, the Recess Framework use a Cache for accelerate access to site. Is possible, in your case, that the cache content is wrong.
I suggest you access path /your/recess/path/data/temp and remove the files recess.php and sqlite-cache.db and try again.
I hope this help you.
I just got a new server and zend framework seems to be working properly EXCEPT, when a member posts something , they get a white page because $this->_redirect('/somepage'); doesn't work...
Am I unaware of some php setting or vhost setting I'm supposed to have? Header("Location:/somepage") works just fine.. :\
I've been looking through my logs with no luck. Also, my images aren't getting uploaded even when folders are set to 777...
I'm stumped. Let me know anything you need to help me fix this. It's a large site that is about to dissolve if this issue stays for longer than a couple days..
Some thoughts:
Xdebug installed? Sometimes Problems with crazy errors
Check Autoloader, possible redirect helper not found?
Check Zend Framework (all files available?)
Have a look into your php.log if exceptions are thrown.
I a new in Ubuntu and PHP frameworks. I had read the book about Yii name "Agile web application development with yii and php 5".
And this is the part of text:
Yii comes with a simple requirement checking tool. To invoke
the tool and have it verify the requirements for your installation, simply point
your browser to:
http://yourhostname/path/to/yii/requirements/index.php
I installed yii in /var/www/html/yii directory.
When I trying to open http://localhost/var/www/html/yii/requirements/index.php I get error message: Oops! This link appears to be broken.
Thanks for any help!
It depends on what your Apache server's "webroot" (localhost) is.
If your webroot is /var/www/html then el chief's answer would work:
http://localhost/yii/requirements/index.php
But your webroot is /var/www then you need to include the html part too:
http://localhost/html/yii/requirements/index.php
Basically "localhost" = /some/path (your Apache webroot), and when you are writing your URL you can just substitute the two.
So if "localhost" = /var/www instead of writing http://var/www/index.php you just write http://localhost/index.php
I hope this helps you with a higher-level understanding of what is going on.
This might help somebody, even though the question is already answered, since I had come searching here, even though the underlying issue was different.
I made the dumb mistake of extracting the downloaded yii archive into the www directory and accessing it via the http://localhost/yii/ URL, but took a while to realise that the extracted directory has the build#-release#, and once renamed to just "yii", things worked. Like I said, the problem you faced was different, but symptom was somewhat similar.
it should be http://localhost/yii/requirements/index.php
Also be aware that this book, while helpful, seems to have been rushed to publication. There's many fixes to be found on the Yii forums. I suggest you keep a tab open whenever you come across something that doesn't work or doesn't seem "right" in the book.