Thread:Talk:Semantic Bundle/Semantic form error: Fatal error: Class 'SMWParamSource' not found in SMW QueryProcessor.php on line 589

Update: I've found a fix. I went to Github and copied the latest version of SMW_QueryProcessor.php and pasted it over the version I had. Things now work. How could this corruption have happened? Is there a way to get a complete refresh of everything to make sure that there are no other similar corruptions anywhere?

Update: I'm now getting this error if I save a page on the wiki

I am getting this error when I submit a semantic form. I've used the form a lot, and haven't changed the form itself, or the template. I thought it might be connected to this database error: Checking table `mw_smw_prop_stats` ...  Table already exists, checking structure ...   ... field p_id is fine. ... field usage_count is fine. ... done. Notice: Uncommitted DB writes (transaction from DatabaseUpdater::doUpdates). in /home/kchcl200/public_html/wiki/includes/db/Database.php on line 3944 A database query error has occurred. Query: ALTER TABLE `mw_smw_prop_stats` ADD UNIQUE INDEX (p_id) Function: SMWSQLHelpers::createIndex Error: 1062 Duplicate entry '2716' for key 'p_id' (localhost)

Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating autoload files Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files MediaWiki 1.22.6 Updater So I fixed the duplicate (by copying the table in Mysql to remove duplicates). Now the same part of the composer updating runs fine:

... done. Checking table `mw_smw_concept_cache` ...  Table already exists, checking structure ...   ... field s_id is fine. ... field o_id is fine. ... done. Checking table `mw_smw_prop_stats` ...  Table already exists, checking structure ...   ... field p_id is fine. ... field usage_count is fine. ... done. Checking table `mw_smw_di_number` ...  Table already exists, checking structure ...   ... field s_id is fine. ... field p_id is fine. ... field o_serialized is fine. ... field o_sortkey is fine. ... done.

I've looked up errors with Class 'SMWParamSource' and they suggest that the problem is usually because of an empty string caused by a configuration error - I've made sure all the form fields are filled in, just in case, but that makes no difference.

This is a pretty major problem for me, so any advice would be very gratefully received!

I have also logged this on the mail list: Semantic MediaWiki users 

My versions are:

Semantic extensions Semantic Bundle (Version 1.9.2)	A pre-packaged bundle of Semantic MediaWiki related extensions	Yaron Koren, Jeroen De Dauw and others Semantic Compound Queries (Version 0.3.4)	A parser function that displays multiple semantic queries at the same time	Yaron Koren Semantic Drilldown (Version 1.4)	A drilldown interface for navigating through semantic data	Yaron Koren and others Semantic Forms (Version 2.7)	Forms for adding and editing semantic data	Yaron Koren, Stephan Gambke and others Semantic Forms Inputs (Version 0.7)	Additional input types for Semantic Forms	Stephan Gambke and others Semantic Image Input (Version 0.3.0 alpha)	Adds an image input that pulls images from Wikipedia to Semantic Forms	Jeroen De Dauw Semantic Internal Objects (Version 0.7.6)	Setting of internal objects in Semantic MediaWiki	Yaron Koren Semantic MediaWiki (Version 1.9.2)	Making your wiki more accessible - for machines and humans (online documentation)	Markus Krötzsch, Jeroen De Dauw, James Hong Kong and others Semantic Result Formats (Version 1.9.1)	Additional result formats for Semantic MediaWiki queries	James Hong Kong, Stephan Gambke, Jeroen De Dauw, Yaron Koren and others Semantic Watchlist (Version 1.1.0 alpha)	Lets users be notified of specific changes to Semantic MediaWiki data	Jeroen De Dauw for WikiWorks SemanticTasks (Version 1.4.1)