I have MX Google Maps installed on an ExpressionEngine website.
When editing a field ( any field ) I'm greeted by this error:
A PHP Error was encountered
Severity: Warning
Message:
opendir(/opt/www/old_site/themes/third_party/mx_google_map/maps-icons/):
failed to open dir: No such file or directory
Filename: mx_google_map/ft.mx_google_map.php
Line Number: 212
MX google maps tries to use the theme folder path specified in an old site.
I've used the correct theme folder path in my general configuration and global template preferences, but MX google maps seems to stick to the old path.
Do I have to change it somewhere else, what am I doing wrong ?
I think I've had this problem before, and I'm pretty sure Max Lazar saves the path in the database for some reason. Do a search for www/old_site/ on your DB and see if you get any results.
Cheers,
Rob
Looking at the add-on source code, it appears to be checking a setting path_markers_icons, and if that is blank, defaulting to the EE theme path.
You should be able to find the path_markers_icons setting under the global fieldtype settings (under Add-ons > Fieldtypes). I suggest you make the setting blank so that it uses the built in EE theme path and doesn't trip you up in future.
Also, going by your line number it looks like you're not running the latest version (or at least the version that I just downloaded), so I suggest you upgrade.
Shot in the dark here: did you have a look in the exp_site table and in the site_system_preferences field? To echo Rob's thoughts, I vaguely remember having problems with that one on an MSM site, albeit not with that add-on. It's base 64 encoded so use this to decode.
http://www.opinionatedgeek.com/dotnet/tools/base64decode/
If your "old" theme_folder_path value in there, change it and base 64encode it to see if it changes something. Although, specifying theme_folder_path and theme_folder_url in config.php should override whatever is in the DB.
Related
I am using TYPO3 7x and want to use SOLR search. I created a core using SOLR Admin UI but getting an error of "unsupported schema". please see screenshots.. I am totally new to SOLR and TYPO3, please help.. Screenshot of Error,
Screenshot of core in SOLR Admin
The Solr layout is usually a home that contains solr.xml file and under that one or more collection/core directories, each containing core.properties file.
In your Solr screenshot, instanceDir is that collection/core location and it is /var/solr/data/core_en. The schema.xml and solrconfig.xml then live under the conf directory within that.
Notice that schema.xml would most likely be renamed managed-schema on the first run (at least with default solrconfig.xml). When you are copying your configs over, make sure to remove old managed-schema as well.
Now, one complication is that your Typo3 seems to be looking for it under /solr/core_en, which is not the same path as /var/solr/data/core_en. I would double check what you have in /solr/core_en as well, perhaps you have two conflicting installation or similar.
After you replace the configs, restart Solr or - at least - reload the core in Admin UI's core screen.
Thanx for your reply. There was no problem with the paths. When i was making the core, I moved conf folder from /typo3conf/ext/solr/Resources/Private/Solr/configsets/ext_solr_6_1_0 to /var/solr/data/core_en but forgot to move typo3lib folder. It worked now. but search is still not working. Whenever i search somthing it says "Nothing found for "here is the term I search". " . In the next step when i index in search module, It gives me "Manual Indexing
An error occurred while indexing manual from the backend". screenshot 1, and when I click show error it gives this.
I'm taking help from docs.typo3.org/typo3cms/extensions/solr/Backend/ConnectionManager.html
I appreciate your help.
I created an admin section for a website of mine using PHPMaker - as I usually do. The website is made from scratch, no wordpress or anything else involved.
In some apparently "innocent" tables, if I try to edit them, I get a 403 error. It never happened, and I used PHP maker for at least 15 websites of mine, so I am puzzled.
It happens only on 2 tables out of 15, and as said, they are fairly innocent. Nothing fancy compared to the other ones.
This is what I've tried:
there was no .htaccess file in the admin directory, so I also tried to insert an empty one
clearing the cache
visiting the page in private mode
all file/directory permissions are ok
regenerating the project and uploading it again, to a different directory
What else can/should I check?
There is a .htaccess file on the root directory of the server to handle some "pretty url", but it should not matter since the admin section is under a specific directory. Or should it matter?
Thank you
At least, I found the problem: every time I was trying to insert an iframe or a script, somewhere somehow somebody (...) was parsing it and it was blocking it for - I guess - security issues, so I let the user to insert the script without the <script> tags, added later in PHP simply with:
print "<script>$readFromDB</script>";
In each insert action, PHPMaker will parse the word
<script
and converted to
<s<x>cript
You have either get the inserted rowid and update the value again OR each time you have to remove the '< x >' to view the value correctly.
Take a look at my answer here: PHPMaker issue
I'm getting 110 warnings in my build after installing Azure SDK 2.3 that I don't recall seeing before. They are all for the file "Microsoft.WindowsAzure.targets".
An example of one such warning is:
The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'CloudToolsVersion'.
Has anyone else encountered this problem or know the right way to fix it?
Well, it looks like I just needed to close any open editors for msbuild project files to get those to disappear. Other answers I found suggested on the web were to disable schema validation or to extend the schema myself.
Very scary! From your solution and hints from other similar questions, I think I know what's going on: When any build script file (such as a .props) is open in a text editor, it turns on /validate. This is used to see red wavies in the editor and gives the warnings when the project is loaded by any MSBuild task. The schema holds the various element used by the MS targets infrastructure, and doesn't know anything else. I'm not sure what good that is, but there you have it.
I'm trying to find a better way to move my Expression Engine 2 sites from development to live servers. I have a checklist that I go through, starting with running a find and replace for the old/new URLs and server paths, then I update the database config file. This however misses out a huge amount of settings that I then have to go through and change manually, but I don't see why I should need to (unless these are encrypyed somewhere).
For example, I have to change the "Basepath to Template File Directory" in the Global Template Settings manually, along with member settings and a handful of others. There must be a file or entry with these in somewhere that I can change before I upload but I can't find it.
Does anyone know where these are stored?
Those are stored in the database, unless you are using global config variables.
I would highly recommend looking into some sort of config bootstrap. There are quite a few solutions to this, but it's really up to you to pick what's right for your development style / environment(s).
Take a look at the following articles:
http://eeinsider.com/articles/creating-a-robust-config.php-file/
http://boblet.tumblr.com/post/68095239/ee-localhost
http://eeinsider.com/articles/multi-server-setup-for-ee-2/
I've tried those solutions, but in my opinion the best option is NSM config bootstrap.
Check it out here: [http://ee-garage.com/nsm-config-bootstrap][4]
The only thing (currently) missing from these solutions are new config vars regarding file upload paths and locations. You can add those to any of these solutions by adding the variables detailed in this article:
http://expressionengine.com/user_guide/cp/content/files/file_upload_preferences.html#overriding-upload-paths-and-urls-using-configuration-variables
I know I'm late on this one, but for anyone else searching, this plugin is very useful and I have used it on numerous occasions.
ExpressionEngine stores your website URL and Server Path in a ridiculous number of places.
REElocate helps you update these in one simple step.
https://github.com/expressodev/reelocate
I suspect this could be something faulty with Excel (although I keep an open mind), but I wondered if anyone knew how I could get around this apparent bug:
I wish to create Excel spreadsheets which link to pages in a local wiki (running MW 1.14.0, full details below) where those pages don't yet all exist.
The idea is that over time we will fill in details of the pages, but we would like to create the links now (because copies of the Excel files will get sent out to various internal users and it will not be feasible to go track them down and add links later once the pages are created)
The problem is that when I create such a hyperlink in Excel and then go to follow the hyperlink, I get a message back indicating that the page does not exist. The full text of the message is:
"Unable to open http://. The Internet site reports that the item you requested could not be found. (HTTP/1.0 404)"
This happens on our site or in fact if you link to a non-existant page on wikipedia (e.g. http://en.wikipedia/wiki/Swed53rf). Whereas if you put such a link into a browser you get the correct response (which is to be taken to a page indicating that there is no such page but that you can create it by following the usual link)
Is there some setting on Apache that I might need to configure / override to make sure it returns a valid server response to Excel?
Creating links to existing pages works fine. I appreciate that in theory we could go around creating all the pages that are required, but some of the people involved in the project (creating the initial Excel files) do not / cannot use our wiki and it would be better if this just worked as it would appear it should rather than having to try to add steps to work around it in this way.
I also wondered if it were anything to do with the short URL reformatting. Our wiki, like wikipedia has short URLs, eg:
http://server/w/index.php?title=User:Joe_Blogs/Sandbox
can be reached from
http://server/wiki/User:Joe_Blogs/Sandbox
but including hyperlinks to the full name versions of the pages does not resolve the issue.
The version of Excel being used is Excel 2003 (SP3)
I have discovered that this also happens with Word 2003 (I imagine they are using the same code). However the desired behaviour occurs with Lotus Notes (a miracle, as it's rubbish in so many other ways! )
I have not done any significant development on Apache, but I could consider some form of custom page that re-directs to the non-existent wiki page if Mediawiki changes were deemed to complex/tricky. (although I'm not particularly sure where I'd start with this idea, I'm guessing some sort of URL parameter to accept the destination pagename might be a possible approach)
Any helpful suggestions gratefully received!!
[FYI: I have posted a question on MWUsers forum (www.mwusers.com) too after Googling this to no avail! I'll update the forum response there if I get an answer here or vice versa]
Many thanks,
Neil
Running on Ubuntu Server 8.10
Product Version:
MediaWiki 1.14.0
PHP 5.2.4-2ubuntu5.6 (apache2handler)
MySQL 5.0.51a-3ubuntu5.4
Installed extensions:
CategoryTree (Version r44056)
Renameuser
CategoryTree (Version r44056)
ImageMap (Version r35980)
ParserFunctions (Version 1.1.1)
StringFunctions (Version 2.0.2)
Not sure how to get Excel to let you go to a page which turns out to be a 404, but as a temporary workaround, you can hack out MediaWiki's 404 reporting on missing pages...
In MediaWiki 1.14 or 1.15 releases this will be in Article::view() in includes/Article.php:
if( $return404 ) {
$wgRequest->response()->header( "HTTP/1.x 404 Not Found" );
}
Note that the latest dev code is a little different, but you can find it where it sends the same header in the same file. :)
Wikipedia returns a 404 with a redirect which gets you to the page you want; my guess would be that Excel's rendering engine is not following the redirect.
You could try capturing the conversation in Wireshark, both with a browser and with Excel. That might show you what's happening differently.
Surely once you roll out the new pages, the links would start working, though?